aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-09-17 10:07:38 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-09-17 11:17:01 +0300
commitd48a9ebe9a81004e7d6354a2ad882facee4995ca (patch)
tree017d0c5fb47823b5243330e1111e9ca353fa108a /activerecord
parentfca8da18ac31dbff5da6549258f44090f911f626 (diff)
downloadrails-d48a9ebe9a81004e7d6354a2ad882facee4995ca.tar.gz
rails-d48a9ebe9a81004e7d6354a2ad882facee4995ca.tar.bz2
rails-d48a9ebe9a81004e7d6354a2ad882facee4995ca.zip
Fix deprecation warning of `ActiveRecord::Migrator.migrations_path=`
`ActiveRecord::Migrator.migrations_path=` was deprecated in #31727. This commit fixes: - `ActiveRecord::Migrator.migrations_path=` is deprecated, but not `ActiveRecord::Migrator.migrations_paths=` - Adds missing space The warning including this commit: ``` DEPRECATION WARNING: `ActiveRecord::Migrator.migrations_path=` is now deprecated and will be removed in Rails 6.0. You can set the `migrations_paths` on the `connection` instead through the `database.yml`. ``` Since it was deprecated in Rails 5.2 we should backport it to the `5-2-stable` branch. Related to #31727
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/migration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index ea53324829..807b882bfb 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -1169,7 +1169,7 @@ module ActiveRecord
def migrations_path=(path)
ActiveSupport::Deprecation.warn \
- "ActiveRecord::Migrator.migrations_paths= is now deprecated and will be removed in Rails 6.0." \
+ "`ActiveRecord::Migrator.migrations_path=` is now deprecated and will be removed in Rails 6.0. " \
"You can set the `migrations_paths` on the `connection` instead through the `database.yml`."
self.migrations_paths = [path]
end