Retrospring/db/migrate/20141207194424_add_answer_c...

8 lines
193 B
Ruby

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