diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-07-24 13:00:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 13:00:05 +0200 |
commit | 0449d8b6bc02f4c0a416a7c40550e3b8b988d113 (patch) | |
tree | ad7db9872c41aef37ef8483777808c342ff913d6 /activerecord | |
parent | b5ba8d715a36f8184ee013a4f83fb260f2dd34fd (diff) | |
parent | 2b331e9098c489791031ee17f683ca8be92f7bba (diff) | |
download | rails-0449d8b6bc02f4c0a416a7c40550e3b8b988d113.tar.gz rails-0449d8b6bc02f4c0a416a7c40550e3b8b988d113.tar.bz2 rails-0449d8b6bc02f4c0a416a7c40550e3b8b988d113.zip |
Merge pull request #29894 from eugeneius/check_schema_file_dup_string
Avoid modifying frozen string in check_schema_file
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/tasks/database_tasks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/database_tasks.rb b/activerecord/lib/active_record/tasks/database_tasks.rb index 5c6a796857..0f3f84ca08 100644 --- a/activerecord/lib/active_record/tasks/database_tasks.rb +++ b/activerecord/lib/active_record/tasks/database_tasks.rb @@ -261,7 +261,7 @@ module ActiveRecord def check_schema_file(filename) unless File.exist?(filename) - message = %{#{filename} doesn't exist yet. Run `rails db:migrate` to create it, then try again.} + message = %{#{filename} doesn't exist yet. Run `rails db:migrate` to create it, then try again.}.dup message << %{ If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded.} if defined?(::Rails.root) Kernel.abort message end |