From 84555afa2cb197027a708284e7ffaf652ef93f12 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 13 Jul 2022 18:22:13 +0200 Subject: [PATCH] Appease rubocop --- activerecord/test/cases/migration/foreign_key_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/test/cases/migration/foreign_key_test.rb b/activerecord/test/cases/migration/foreign_key_test.rb index 94afdacce9b..174419e34c6 100644 --- a/activerecord/test/cases/migration/foreign_key_test.rb +++ b/activerecord/test/cases/migration/foreign_key_test.rb @@ -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