aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-02 12:09:25 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-12 13:45:41 +0530
commit5d643d365ee656ff93517c649578545c7cc280c3 (patch)
tree490038c74d6b78b1f887e4651a5b930c319cf825 /activerecord/lib/active_record/migration
parent8925e37fdcc37f4ff2ab2d55168719bbe9386ebf (diff)
downloadrails-5d643d365ee656ff93517c649578545c7cc280c3.tar.gz
rails-5d643d365ee656ff93517c649578545c7cc280c3.tar.bz2
rails-5d643d365ee656ff93517c649578545c7cc280c3.zip
Correctly show deprecation warning for incompatible migrations
Diffstat (limited to 'activerecord/lib/active_record/migration')
-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" \