diff options
Diffstat (limited to 'db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb')
-rw-r--r-- | db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb b/db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb deleted file mode 100644 index 15c02cd77b8..00000000000 --- a/db/post_migrate/20180629191052_add_partial_index_to_projects_for_last_repository_check_at.rb +++ /dev/null @@ -1,18 +0,0 @@ -class AddPartialIndexToProjectsForLastRepositoryCheckAt < ActiveRecord::Migration[4.2] - include Gitlab::Database::MigrationHelpers - - # Set this constant to true if this migration requires downtime. - DOWNTIME = false - - disable_ddl_transaction! - - INDEX_NAME = "index_projects_on_last_repository_check_at" - - def up - add_concurrent_index(:projects, :last_repository_check_at, where: "last_repository_check_at IS NOT NULL", name: INDEX_NAME) - end - - def down - remove_concurrent_index(:projects, :last_repository_check_at, where: "last_repository_check_at IS NOT NULL", name: INDEX_NAME) - end -end |