Skip to content
Browse files

Merge pull request #10850 from arunagw/build_fix_null_migration

Need to pass parameters
  • Loading branch information...
1 parent 60fa355 commit d13c07d92298944020aca15e67cd25c7b5c9f80e @tenderlove tenderlove committed Jun 5, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/migration.rb
View
6 activerecord/lib/active_record/migration.rb
@@ -721,8 +721,8 @@ def load_migration
end
- class NullMigration < MigrationProxy
- def initialize(name, version, filename, scope)
+ class NullMigration < MigrationProxy #:nodoc:
+ def initialize
super(nil, 0, nil, nil)
end
@@ -804,7 +804,7 @@ def last_version
last_migration.version
end
- def last_migration # :nodoc:
+ def last_migration #:nodoc:
migrations(migrations_paths).last || NullMigration.new
end

0 comments on commit d13c07d

Please sign in to comment.
Something went wrong with that request. Please try again.