Appease rubocop

This commit is contained in:
Jean Boussier 2022-07-13 18:22:13 +02:00
parent e7633661b1
commit 84555afa2c
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ if ActiveRecord::Base.connection.supports_foreign_keys?
elsif ActiveRecord::Base.connection.database_version < "5.6"
assert_match(/Can't create table/, error.message)
elsif ActiveRecord::Base.connection.database_version < "8.0"
assert_match(/Can't write\; duplicate key in table/, error.message)
assert_match(/Can't write; duplicate key in table/, error.message)
else
assert_match(/Duplicate foreign key constraint name/, error.message)
end