Browse files

Merge pull request #10850 from arunagw/build_fix_null_migration

Need to pass parameters
  • Loading branch information...
1 parent c5ba896 commit fa94695f70db27f83f1e5ee27710ba433268584f @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 fa94695

Please sign in to comment.