about summary refs log tree commit diff
path: root/db/migrate/20200630222227_add_edited_to_statuses.rb
blob: c0a5abb97c36d5554c8cc611102e3c7791012510 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class AddEditedToStatuses < ActiveRecord::Migration[5.2]
  def up
    add_column :statuses, :edited, :int
    change_column_default :statuses, :edited, 0
  end

  def down
    remove_column :statuses, :edited
  end
end