summaryrefslogtreecommitdiff
path: root/db/post_migrate/20190424134256_drop_projects_ci_id.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20190424134256_drop_projects_ci_id.rb')
-rw-r--r--db/post_migrate/20190424134256_drop_projects_ci_id.rb33
1 files changed, 0 insertions, 33 deletions
diff --git a/db/post_migrate/20190424134256_drop_projects_ci_id.rb b/db/post_migrate/20190424134256_drop_projects_ci_id.rb
deleted file mode 100644
index 223e9fd4a94..00000000000
--- a/db/post_migrate/20190424134256_drop_projects_ci_id.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-# frozen_string_literal: true
-
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class DropProjectsCiId < ActiveRecord::Migration[5.1]
- include Gitlab::Database::MigrationHelpers
-
- # Set this constant to true if this migration requires downtime.
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- if index_exists?(:projects, :ci_id)
- remove_concurrent_index :projects, :ci_id
- end
-
- if column_exists?(:projects, :ci_id)
- remove_column :projects, :ci_id
- end
- end
-
- def down
- unless column_exists?(:projects, :ci_id)
- add_column :projects, :ci_id, :integer # rubocop:disable Migration/AddColumnsToWideTables
- end
-
- unless index_exists?(:projects, :ci_id)
- add_concurrent_index :projects, :ci_id
- end
- end
-end