diff options
author | Josh Susser <josh@hasmanythrough.com> | 2010-12-01 11:56:21 -0800 |
---|---|---|
committer | Josh Susser <josh@hasmanythrough.com> | 2010-12-01 12:01:56 -0800 |
commit | a49de9811ab4cf39fbdb5a6941ee003b1e489184 (patch) | |
tree | 36f972c751e769e460acccc8f017408acf800bdc /activerecord/test/cases/ar_schema_test.rb | |
parent | b07c2c0fd3130bb69cf8d846e46762a7c3972107 (diff) | |
download | rails-a49de9811ab4cf39fbdb5a6941ee003b1e489184.tar.gz rails-a49de9811ab4cf39fbdb5a6941ee003b1e489184.tar.bz2 rails-a49de9811ab4cf39fbdb5a6941ee003b1e489184.zip |
tests mostly pass
adjust to work with instance-based migations
migrated_at can't be null
why must people have last names? it's killing me!
Diffstat (limited to 'activerecord/test/cases/ar_schema_test.rb')
-rw-r--r-- | activerecord/test/cases/ar_schema_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/test/cases/ar_schema_test.rb b/activerecord/test/cases/ar_schema_test.rb index 930a57330d..28f219e213 100644 --- a/activerecord/test/cases/ar_schema_test.rb +++ b/activerecord/test/cases/ar_schema_test.rb @@ -47,8 +47,9 @@ if ActiveRecord::Base.connection.supports_migrations? end def test_migration_adds_row_to_migrations_table - ActiveRecord::Schema.migration("123001") - ActiveRecord::Schema.migration("123002", "add_magic_power_to_unicorns") + schema = ActiveRecord::Schema.new + schema.migration("123001") + schema.migration("123002", "add_magic_power_to_unicorns") rows = @connection.select_all("SELECT * FROM #{@connection.quote_table_name(@sm_table)}") assert_equal 2, rows.length |