6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/resque/pertry/migrations/create_resque_pertry_table.rb', line 6
def up
create_table :resque_pertry_persistence do |t|
t.string :audit_id, :null => false, :limit => 64
t.string :job, :null => false
t.text :arguments, :null => false, :limit => 64.kilobytes + 1
t.integer :attempt, :default => 1
t.datetime :enqueued_at
t.datetime :completed_at
t.datetime :failed_at
t.datetime :last_tried_at
t.datetime :expires_at
t.timestamps
end
add_index :resque_pertry_persistence, :audit_id, :unique => true
end
|