aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-02-23 14:59:13 +1030
committerMatthew Draper <matthew@trebex.net>2016-02-23 14:59:13 +1030
commitd6db96663de1a83f2d57076fdb3f7170071b085b (patch)
tree9bd02d81f299b5eebf9b95194c7dbc82ea75d6ec /activerecord/lib/active_record
parent37f32c013e010f504ec9d6caebc4a8aeb49af9b5 (diff)
parent33b0dbe40729ba130c3c83391a3d9581c2a8b034 (diff)
downloadrails-d6db96663de1a83f2d57076fdb3f7170071b085b.tar.gz
rails-d6db96663de1a83f2d57076fdb3f7170071b085b.tar.bz2
rails-d6db96663de1a83f2d57076fdb3f7170071b085b.zip
Merge pull request #23419 from prathamesh-sonpatki/fix-showing-of-deprecation-warning-for-legacy-migrations
Correctly show deprecation warning for incompatible migrations
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/migration/compatibility.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration/compatibility.rb b/activerecord/lib/active_record/migration/compatibility.rb
index 45e35a4f71..09d55adcd7 100644
--- a/activerecord/lib/active_record/migration/compatibility.rb
+++ b/activerecord/lib/active_record/migration/compatibility.rb
@@ -102,7 +102,7 @@ module ActiveRecord
module Legacy
include FourTwoShared
- def run(*)
+ def migrate(*)
ActiveSupport::Deprecation.warn \
"Directly inheriting from ActiveRecord::Migration is deprecated. " \
"Please specify the Rails release the migration was written for:\n" \