Retrospring/db/migrate/20141207194424_add_answer_c...

6 lines
162 B
Ruby
Raw Normal View History

class AddAnswerCountToQuestions < ActiveRecord::Migration[4.2]
2014-12-07 11:51:44 -08:00
def change
add_column :questions, :answer_count, :integer, default: 0, null: false
end
end