16 lines
310 B
Ruby
16 lines
310 B
Ruby
class DropFailedJobsOriginalId < ActiveRecord::Migration
|
|
tag :postdeploy
|
|
|
|
def self.connection
|
|
Delayed::Backend::ActiveRecord::Job.connection
|
|
end
|
|
|
|
def self.up
|
|
remove_column :failed_jobs, :original_id
|
|
end
|
|
|
|
def self.down
|
|
add_column :failed_jobs, :original_id, :integer, limit: 8
|
|
end
|
|
end
|