retrospring/db/migrate/20141113164048_add_smile_count_to_answers.rb

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

8 lines
187 B
Ruby
Raw Normal View History

2023-10-20 01:37:34 +02:00
# frozen_string_literal: true
class AddSmileCountToAnswers < ActiveRecord::Migration[4.2]
2014-11-13 17:49:31 +01:00
def change
add_column :answers, :smile_count, :integer, default: 0, null: false
end
end