summaryrefslogtreecommitdiff
path: root/db/migrate/20161212142807_add_lower_path_index_to_routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20161212142807_add_lower_path_index_to_routes.rb')
-rw-r--r--db/migrate/20161212142807_add_lower_path_index_to_routes.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/db/migrate/20161212142807_add_lower_path_index_to_routes.rb b/db/migrate/20161212142807_add_lower_path_index_to_routes.rb
deleted file mode 100644
index 92a12dbc699..00000000000
--- a/db/migrate/20161212142807_add_lower_path_index_to_routes.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# See http://doc.gitlab.com/ce/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-# rubocop:disable RemoveIndex
-class AddLowerPathIndexToRoutes < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- return unless Gitlab::Database.postgresql?
-
- execute 'CREATE INDEX CONCURRENTLY index_on_routes_lower_path ON routes (LOWER(path));'
- end
-
- def down
- return unless Gitlab::Database.postgresql?
-
- remove_index :routes, name: :index_on_routes_lower_path if index_exists?(:routes, name: :index_on_routes_lower_path)
- end
-end