aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-13 11:34:12 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-13 14:33:58 -0800
commit280e4cba13e3aa332496280d3d74b00fdbaeeced (patch)
treea655293cbdb80523b358ed556c6601d823756b0b /activerecord/test
parent0f743bc59dc04f9108cefb46e22a56ed7ebf35bc (diff)
downloadrails-280e4cba13e3aa332496280d3d74b00fdbaeeced.tar.gz
rails-280e4cba13e3aa332496280d3d74b00fdbaeeced.tar.bz2
rails-280e4cba13e3aa332496280d3d74b00fdbaeeced.zip
refactor the migrate method to filter migrations before running them
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 1db7dab04b..0fae695a9c 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -312,7 +312,7 @@ class MigrationTest < ActiveRecord::TestCase
def test_only_loads_pending_migrations
# migrate up to 1
- ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/valid", 1)
+ ActiveRecord::SchemaMigration.create!(:version => '1')
proxies = ActiveRecord::Migrator.migrate(MIGRATIONS_ROOT + "/valid", nil)