retrospring/db/migrate/20141207194424_add_answer_count_to_questions.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
193 B
Ruby
Raw Normal View History

2023-10-20 01:37:34 +02:00
# frozen_string_literal: true
class AddAnswerCountToQuestions < ActiveRecord::Migration[4.2]
2014-12-07 20:51:44 +01:00
def change
add_column :questions, :answer_count, :integer, default: 0, null: false
end
end