about summary refs log tree commit diff
path: root/db/migrate/20190103124649_create_scheduled_statuses.rb
blob: 2b78073b85e2dee942dadef72c0ac85750372707 (plain) (blame)
1
2
3
4
5
6
7
8
9
class CreateScheduledStatuses < ActiveRecord::Migration[5.2]
  def change
    create_table :scheduled_statuses do |t|
      t.belongs_to :account, foreign_key: { on_delete: :cascade }
      t.datetime :scheduled_at, index: true
      t.jsonb :params
    end
  end
end