scinote-web/db/migrate/20230904080206_add_name_column_to_text_component.rb

9 lines
260 B
Ruby
Raw Normal View History

2023-09-04 19:58:11 +08:00
# frozen_string_literal: true
class AddNameColumnToTextComponent < ActiveRecord::Migration[7.0]
def change
add_column :result_texts, :name, :string, default: '', index: true
add_column :step_texts, :name, :string, default: '', index: true
end
end