17 lines
328 B
Ruby
17 lines
328 B
Ruby
class AddDelayedJobsStrand < ActiveRecord::Migration[4.2]
|
|
tag :predeploy
|
|
|
|
def self.connection
|
|
Delayed::Backend::ActiveRecord::Job.connection
|
|
end
|
|
|
|
def self.up
|
|
add_column :delayed_jobs, :strand, :string
|
|
add_index :delayed_jobs, :strand
|
|
end
|
|
|
|
def self.down
|
|
remove_column :delayed_jobs, :strand
|
|
end
|
|
end
|