diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-30 12:40:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 12:40:03 +0900 |
commit | 87eb1a26da0b1385af07a8347dcfd32998a614ee (patch) | |
tree | d9425255c03031ee6f9d96a0a7f0cd1df3ba9870 /activerecord/lib/active_record | |
parent | 29db6b3cb26708fa174e1e90dc7088cff92b8083 (diff) | |
parent | c9a084a530a1ed60c61e63e21dfac4ae35a57707 (diff) | |
download | rails-87eb1a26da0b1385af07a8347dcfd32998a614ee.tar.gz rails-87eb1a26da0b1385af07a8347dcfd32998a614ee.tar.bz2 rails-87eb1a26da0b1385af07a8347dcfd32998a614ee.zip |
Merge pull request #30462 from y-yagi/fix_cant_modify_forzen_string_error_in_db_tasks
Fix `can't modify frozen String` error in `DatabaseTasks`
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/tasks/postgresql_database_tasks.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/tasks/sqlite_database_tasks.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb index 5681ccdd23..647e066137 100644 --- a/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/postgresql_database_tasks.rb @@ -117,7 +117,7 @@ module ActiveRecord end def run_cmd_error(cmd, args, action) - msg = "failed to execute:\n" + msg = "failed to execute:\n".dup msg << "#{cmd} #{args.join(' ')}\n\n" msg << "Please check the output above for any errors and make sure that `#{cmd}` is installed in your PATH and has proper permissions.\n\n" msg diff --git a/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb b/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb index abdd6db64a..dfe599c4dd 100644 --- a/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb @@ -73,7 +73,7 @@ module ActiveRecord end def run_cmd_error(cmd, args) - msg = "failed to execute:\n" + msg = "failed to execute:\n".dup msg << "#{cmd} #{args.join(' ')}\n\n" msg << "Please check the output above for any errors and make sure that `#{cmd}` is installed in your PATH and has proper permissions.\n\n" msg |