summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-28 11:29:04 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 15:07:29 +0200
commit16ae7b7a49314b2525f3f32c07dd8a4891fa74e1 (patch)
tree1b76f1850c224b05f05c6cd13c9edf1c0a0752eb /lib
parentafd5c34d9f1bf5ad7d85209dfecbaf28c6c12496 (diff)
downloadgitlab-ce-16ae7b7a49314b2525f3f32c07dd8a4891fa74e1.tar.gz
Add initial stage_id background migration files
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/background_migration/migrate_build_stage_id_reference.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb b/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb
new file mode 100644
index 00000000000..b554c3e079b
--- /dev/null
+++ b/lib/gitlab/background_migration/migrate_build_stage_id_reference.rb
@@ -0,0 +1,16 @@
+module Gitlab
+ module BackgroundMigration
+ class MigrateBuildStageIdReference
+ class Build < ActiveRecord::Base
+ self.table_name = 'ci_builds'
+ end
+
+ class Stage < ActiveRecord::Base
+ self.table_name = 'ci_stages'
+ end
+
+ def perform(id)
+ end
+ end
+ end
+end