Add migration that migrates CI/CD queues

This commit is contained in:
Grzegorz Bizon 2017-08-22 12:47:37 +02:00
parent 193b199672
commit 8b4a335ff1
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,14 @@
class MigratePipelineSidekiqQueues < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
sidekiq_queue_migrate 'build', to: 'pipeline_default'
sidekiq_queue_migrate 'pipeline', to: 'pipeline_default'
end
def down
sidekiq_queue_migrate 'pipeline_default', to: 'pipeline'
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170820100558) do
ActiveRecord::Schema.define(version: 20170822101017) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"