20190103124649_create_scheduled_statuses.rb 349 B

1234567891011
  1. # frozen_string_literal: true
  2. class CreateScheduledStatuses < ActiveRecord::Migration[5.2]
  3. def change
  4. create_table :scheduled_statuses do |t| # rubocop:disable Rails/CreateTableWithTimestamps
  5. t.belongs_to :account, foreign_key: { on_delete: :cascade }
  6. t.datetime :scheduled_at, index: true
  7. t.jsonb :params
  8. end
  9. end
  10. end