diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-04-09 16:20:15 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-04-09 16:20:15 +0000 |
commit | 8a5a9dcbf64843f064b6e8a0b9c6eea8f0b8536e (patch) | |
tree | 27064d2d5ebccdd40bf5c4f43fcf5b2e3e7e57f3 /activerecord/test/cases/ar_schema_test.rb | |
parent | 78c2d9fc223e7a9945aee65c838f7ce78e9ddb3e (diff) | |
download | rails-8a5a9dcbf64843f064b6e8a0b9c6eea8f0b8536e.tar.gz rails-8a5a9dcbf64843f064b6e8a0b9c6eea8f0b8536e.tar.bz2 rails-8a5a9dcbf64843f064b6e8a0b9c6eea8f0b8536e.zip |
Add support for interleaving migrations by storing which migrations have run in the new schema_migrations table. Closes #11493 [jordi]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/cases/ar_schema_test.rb')
-rw-r--r-- | activerecord/test/cases/ar_schema_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/ar_schema_test.rb b/activerecord/test/cases/ar_schema_test.rb index 9fdd8398b7..431dc7a141 100644 --- a/activerecord/test/cases/ar_schema_test.rb +++ b/activerecord/test/cases/ar_schema_test.rb @@ -25,8 +25,8 @@ if ActiveRecord::Base.connection.supports_migrations? end assert_nothing_raised { @connection.select_all "SELECT * FROM fruits" } - assert_nothing_raised { @connection.select_all "SELECT * FROM schema_info" } - assert_equal 7, @connection.select_one("SELECT version FROM schema_info")['version'].to_i + assert_nothing_raised { @connection.select_all "SELECT * FROM schema_migrations" } + assert_equal 7, ActiveRecord::Migrator::current_version end end |