retrospring/db/migrate/20141207194424_add_answer_count_to_questions.rb
2023-10-21 13:01:07 +02:00

7 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