diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-09-09 16:30:48 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-09-09 16:30:48 +0200 |
commit | 46334bac3d0269952e53bb817372cad4d43cb9e1 (patch) | |
tree | e7e341a35b36487b94e5a58f32a7f485f95e7f4f /activerecord/test | |
parent | b3ab44f6cb03e0e7a59bb6f8562ae5fa21bfed44 (diff) | |
download | rails-46334bac3d0269952e53bb817372cad4d43cb9e1.tar.gz rails-46334bac3d0269952e53bb817372cad4d43cb9e1.tar.bz2 rails-46334bac3d0269952e53bb817372cad4d43cb9e1.zip |
remove dead code.
The last call site of `last_version` was removed with:
838e18321118ee3ec6669217e5ea0216f79c969a
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 128a242495..10f1c7216f 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -75,15 +75,13 @@ class MigrationTest < ActiveRecord::TestCase ActiveRecord::Migrator.up(migrations_path) assert_equal 3, ActiveRecord::Migrator.current_version - assert_equal 3, ActiveRecord::Migrator.last_version assert_equal false, ActiveRecord::Migrator.needs_migration? ActiveRecord::Migrator.down(MIGRATIONS_ROOT + "/valid") assert_equal 0, ActiveRecord::Migrator.current_version - assert_equal 3, ActiveRecord::Migrator.last_version assert_equal true, ActiveRecord::Migrator.needs_migration? - ActiveRecord::SchemaMigration.create!(:version => ActiveRecord::Migrator.last_version) + ActiveRecord::SchemaMigration.create!(version: 3) assert_equal true, ActiveRecord::Migrator.needs_migration? ensure ActiveRecord::Migrator.migrations_paths = old_path |