12 lines
333 B
Ruby
12 lines
333 B
Ruby
class ModifyDefaultQueue < ActiveRecord::Migration
|
|
def up
|
|
change_column :delayed_jobs, :queue, :string, :default => 'default'
|
|
execute "UPDATE delayed_jobs SET queue = 'default'"
|
|
end
|
|
|
|
def down
|
|
change_column :delayed_jobs, :queue, :string, :default => nil
|
|
execute "UPDATE delayed_jobs SET queue = null"
|
|
end
|
|
end
|