retrospring/db/migrate/20141207194424_add_answer_count_to_questions.rb
2020-04-19 18:10:31 +02:00

5 lines
162 B
Ruby

class AddAnswerCountToQuestions < ActiveRecord::Migration[4.2]
def change
add_column :questions, :answer_count, :integer, default: 0, null: false
end
end