Module: DispatchRider::ScheduledJob::Migration

Defined in:
lib/dispatch-rider/scheduled_job/migration.rb

Instance Method Summary collapse

Instance Method Details

#create_scheduled_jobs_tableObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/dispatch-rider/scheduled_job/migration.rb', line 5

def create_scheduled_jobs_table
  create_table :scheduled_jobs do |t|
    t.datetime :scheduled_at
    t.text :destinations
    t.text :message
    t.string :claim_id
    t.datetime :claim_expires_at

    t.index :scheduled_at
    t.index :claim_id
    t.index :claim_expires_at
  end
end