summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-07-03 09:19:17 +0000
committerNick Thomas <nick@gitlab.com>2019-07-03 09:19:17 +0000
commite555db6f28260e5473b8634fe3a21e89ec1ba578 (patch)
tree3038ae4889bf9d2b017ca14488a0d949ea52cf42 /db
parentf90a7601c40c82bd230f9c014bc4f64744e77b5e (diff)
parent28ac2d304989164a1e9bf6d82fa8106a86a5f688 (diff)
downloadgitlab-ce-e555db6f28260e5473b8634fe3a21e89ec1ba578.tar.gz
Merge branch '44990-remove-old-i' into 'master'
Remove old migration specs that violate FactoriesInMigrationSpecs See merge request gitlab-org/gitlab-ce!30280
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20180202111106_remove_project_labels_group_id.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/db/post_migrate/20180202111106_remove_project_labels_group_id.rb b/db/post_migrate/20180202111106_remove_project_labels_group_id.rb
deleted file mode 100644
index 31ec84f0d6a..00000000000
--- a/db/post_migrate/20180202111106_remove_project_labels_group_id.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class RemoveProjectLabelsGroupId < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- update_column_in_batches(:labels, :group_id, nil) do |table, query|
- query.where(table[:type].eq('ProjectLabel').and(table[:group_id].not_eq(nil)))
- end
- end
-
- def down
- end
-end