summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-20 12:42:01 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-20 12:42:01 +0200
commit9c10683b01f9b32275a04bf9ed4e84795a527db7 (patch)
tree534423909af0d036eb2973cb97b3d95e672a5c75 /db
parent54efa041d70707eb28326bb23220ebe8d6efb8aa (diff)
parent001dd56e7bfd04d22f5437569ba8aa60a0317a3e (diff)
downloadgitlab-ce-9c10683b01f9b32275a04bf9ed4e84795a527db7.tar.gz
Merge branch 'master' into backstage/gb/migrate-stages-statuses
* master: Fix background migration cleanup specs Fix JS; make buttons sr accessibile; fix overlay Isolate stage_id reference clean up migration Fix eslint Make sidebar accessible on mobile Add mobile navigation on project page Fix database schema version number Fix background migrations module specs Remove migration dependency from stage_id migration Remove obsolete argument from bg migrations code Add specs for stage_id reference cleanup migration Add pending set of specs for stage_id cleanup migration Rename stage_id reference clean up migration Implement build stage_id reference migration clean up
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170710083355_clean_stage_id_reference_migration.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20170710083355_clean_stage_id_reference_migration.rb b/db/migrate/20170710083355_clean_stage_id_reference_migration.rb
new file mode 100644
index 00000000000..681203eaf40
--- /dev/null
+++ b/db/migrate/20170710083355_clean_stage_id_reference_migration.rb
@@ -0,0 +1,18 @@
+class CleanStageIdReferenceMigration < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ ##
+ # `MigrateStageIdReferenceInBackground` background migration cleanup.
+ #
+ def up
+ Gitlab::BackgroundMigration.steal('MigrateBuildStageIdReference')
+ end
+
+ def down
+ # noop
+ end
+end