about summary refs log tree commit diff
path: root/db/migrate/20200114011918_create_defederating_statuses.rb
blob: 55fc7f9003b2f84702b2bd7d8d88383730246130 (plain) (blame)
1
2
3
4
5
6
7
8
9
class CreateDefederatingStatuses < ActiveRecord::Migration[5.2]
  def change
    create_table :defederating_statuses do |t|
      t.references :status, foreign_key: true
      t.datetime :defederate_after
    end
    safety_assured { add_index :defederating_statuses, :defederate_after }
  end
end