summaryrefslogtreecommitdiff
path: root/spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb')
-rw-r--r--spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb b/spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb
deleted file mode 100644
index dae0241b895..00000000000
--- a/spec/migrations/add_temporary_partial_index_on_project_id_to_services_spec.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-require_migration!
-
-RSpec.describe AddTemporaryPartialIndexOnProjectIdToServices do
- let(:migration) { described_class.new }
-
- describe '#up' do
- it 'creates temporary partial index on type' do
- expect { migration.up }.to change { migration.index_exists?(:services, :project_id, name: described_class::INDEX_NAME) }.from(false).to(true)
- end
- end
-
- describe '#down' do
- it 'removes temporary partial index on type' do
- migration.up
-
- expect { migration.down }.to change { migration.index_exists?(:services, :project_id, name: described_class::INDEX_NAME) }.from(true).to(false)
- end
- end
-end