Skip to content

Commit f56e055

Browse files
committed
fix migration file name and test
1 parent d77de08 commit f56e055

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

spec/migrations/20241016118000_drop_unique_constraint_quota_definitions_name_key_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
RSpec.describe 'migration to add or remove unique constraint on name column in quota_definitions table', isolation: :truncation, type: :migration do
55
include_context 'migration' do
6-
let(:migration_filename) { '20241016118000_drop_unique_constraint_quota_definitions_name_key_spec.rb' }
6+
let(:migration_filename) { '20241016118000_drop_unique_constraint_quota_definitions_name_key.rb' }
77
end
88
describe 'up migration' do
99
context 'mysql' do
@@ -17,7 +17,6 @@
1717
expect(db.indexes(:quota_definitions)).not_to include(:name)
1818

1919
# Test idempotency: if constraint already removed, doesn't error
20-
db.drop_index :quota_definitions, :name, name: :name, if_exists: true
2120
expect { Sequel::Migrator.run(db, migrations_path, target: current_migration_index, allow_missing_migration_files: true) }.not_to raise_error
2221
expect(db.indexes(:quota_definitions)).not_to include(:name)
2322
end

0 commit comments

Comments
 (0)