retrospring/db/migrate/20141207194424_add_answer_count_to_questions.rb

6 lines
157 B
Ruby
Raw Normal View History

2014-12-07 20:51:44 +01:00
class AddAnswerCountToQuestions < ActiveRecord::Migration
def change
add_column :questions, :answer_count, :integer, default: 0, null: false
end
end