entrance-exam/db/migrate/20250426200114_question_question_kind.rb

6 lines
208 B
Ruby

class QuestionQuestionKind < ActiveRecord::Migration[8.0]
def change
rename_column :questions, :kind, :answer_kind
add_column :questions, :question_kind, :integer, null: false, default: 0
end
end