diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-11 14:40:18 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-18 10:36:12 +0200 |
commit | f4eb2ff725ae4f05679b2d1d41dbc3e033e7d3ac (patch) | |
tree | ebf2eb04cd3b89b64393ae5f066215c03abe3160 /db | |
parent | 9e5c8e5d7f81b88998c8def2f4a20d54eeee49d0 (diff) | |
download | gitlab-ce-f4eb2ff725ae4f05679b2d1d41dbc3e033e7d3ac.tar.gz |
Implement build stage_id reference migration clean up
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170710083355_build_stage_id_ref_migration_cleanup.rb | 21 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 22 insertions, 1 deletions
diff --git a/db/migrate/20170710083355_build_stage_id_ref_migration_cleanup.rb b/db/migrate/20170710083355_build_stage_id_ref_migration_cleanup.rb new file mode 100644 index 00000000000..be8efb140d9 --- /dev/null +++ b/db/migrate/20170710083355_build_stage_id_ref_migration_cleanup.rb @@ -0,0 +1,21 @@ +require Rails.root.join('db', 'post_migrate', '20170628080858_migrate_stage_id_reference_in_background') + +class BuildStageIdRefMigrationCleanup < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + ## + # `MigrateStageIdReferenceInBackground` background migration cleanup. + # + def up + Gitlab::BackgroundMigration + .steal(MigrateStageIdReferenceInBackground::MIGRATION) + end + + def down + # noop + end +end diff --git a/db/schema.rb b/db/schema.rb index 5264fc99557..44bc0109e66 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170707184244) do +ActiveRecord::Schema.define(version: 20170711145558) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |