aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/migration.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index bce4802d0a..e96c347f6f 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -722,8 +722,8 @@ module ActiveRecord
end
- class NullMigration < MigrationProxy
- def initialize(name, version, filename, scope)
+ class NullMigration < MigrationProxy #:nodoc:
+ def initialize
super(nil, 0, nil, nil)
end
@@ -805,7 +805,7 @@ module ActiveRecord
last_migration.version
end
- def last_migration # :nodoc:
+ def last_migration #:nodoc:
migrations(migrations_paths).last || NullMigration.new
end