diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-01-30 12:21:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 12:21:43 -0500 |
commit | ede6673f9b8ea9567e300a6bd68ba14f48651c08 (patch) | |
tree | 4391c4099912c1526ce6c70e83973c319bccb7b6 /activerecord/lib | |
parent | de2bca4e8513d59c1a4f131e6fc6386231db1f82 (diff) | |
parent | 6e49cc77ab3d16c06e12f93158eaf3e507d4120e (diff) | |
download | rails-ede6673f9b8ea9567e300a6bd68ba14f48651c08.tar.gz rails-ede6673f9b8ea9567e300a6bd68ba14f48651c08.tar.bz2 rails-ede6673f9b8ea9567e300a6bd68ba14f48651c08.zip |
Merge pull request #27787 from y-yagi/show_correct_class_name_in_migration_error
show correct class name in migration inherited directly error
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 339332a60d..40f6226315 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -525,7 +525,7 @@ module ActiveRecord raise StandardError, "Directly inheriting from ActiveRecord::Migration is not supported. " \ "Please specify the Rails release the migration was written for:\n" \ "\n" \ - " class #{self.class.name} < ActiveRecord::Migration[4.2]" + " class #{subclass} < ActiveRecord::Migration[4.2]" end end |