about summary refs log tree commit diff
path: root/db/migrate/20200731211100_create_publishing_delays.rb
blob: 9561ca0b20c9a9fd72fcb44a2d1eb4594dd8bc5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class CreatePublishingDelays < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def change
    create_table :publishing_delays do |t|
      t.references :status, null: false, unique: true, foreign_key: { on_delete: :cascade }
      t.datetime :after, index: { algorithm: :concurrently }
    end
  end
end