diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-05 02:26:53 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-05 02:26:53 -0700 |
commit | 17624a0b043c54d291204e1835511895cb05f4bd (patch) | |
tree | f227c485f3eb6ca4266915bdc2dc38366de38fb4 /activerecord/lib/active_record | |
parent | 9d728cd70810eed775c77446d9a3bccc1081d3cd (diff) | |
parent | 6613a88f6cbd67cb42944f13f4f394d8d4156783 (diff) | |
download | rails-17624a0b043c54d291204e1835511895cb05f4bd.tar.gz rails-17624a0b043c54d291204e1835511895cb05f4bd.tar.bz2 rails-17624a0b043c54d291204e1835511895cb05f4bd.zip |
Merge pull request #10850 from arunagw/build_fix_null_migration
Need to pass parameters
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 6 |
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 |