mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix frozen string concatenation by indicating that it's mutable
References 89bcca5
This commit is contained in:
parent
7340596de4
commit
e9f0861eb9
1 changed files with 2 additions and 2 deletions
|
@ -120,13 +120,13 @@ module ActiveRecord
|
|||
def initialize(adapter = nil, message: nil, table: nil, foreign_key: nil, target_table: nil, primary_key: nil)
|
||||
@adapter = adapter
|
||||
if table
|
||||
msg = <<~EOM
|
||||
msg = +<<~EOM
|
||||
Column `#{foreign_key}` on table `#{table}` has a type of `#{column_type(table, foreign_key)}`.
|
||||
This does not match column `#{primary_key}` on `#{target_table}`, which has type `#{column_type(target_table, primary_key)}`.
|
||||
To resolve this issue, change the type of the `#{foreign_key}` column on `#{table}` to be :integer. (For example `t.integer #{foreign_key}`).
|
||||
EOM
|
||||
else
|
||||
msg = <<~EOM
|
||||
msg = +<<~EOM
|
||||
There is a mismatch between the foreign key and primary key column types.
|
||||
Verify that the foreign key column type and the primary key of the associated table match types.
|
||||
EOM
|
||||
|
|
Loading…
Reference in a new issue