2012-04-04 17:50:05 +01:00
|
|
|
class ModifyDefaultQueue < ActiveRecord::Migration
|
|
|
|
def up
|
2014-01-21 04:51:49 +00:00
|
|
|
change_column :delayed_jobs, :queue, :string, default: 'default'
|
2012-04-04 17:50:05 +01:00
|
|
|
execute "UPDATE delayed_jobs SET queue = 'default'"
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2014-01-21 04:51:49 +00:00
|
|
|
change_column :delayed_jobs, :queue, :string, default: nil
|
2012-04-04 17:50:05 +01:00
|
|
|
execute "UPDATE delayed_jobs SET queue = null"
|
|
|
|
end
|
|
|
|
end
|