about summary refs log tree commit diff
path: root/db/migrate/20190723152514_create_destructing_statuses.rb
blob: baed9035af9017a2f8ca2c52511b1079f0826bc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
class CreateDestructingStatuses < ActiveRecord::Migration[5.2]
  def change
    create_table :destructing_statuses do |t|
      t.references :status, foreign_key: true
      t.datetime :delete_after
    end
    add_index :destructing_statuses, :delete_after
  end
end