aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJosh Susser <josh@hasmanythrough.com>2010-12-01 11:56:21 -0800
committerJosh Susser <josh@hasmanythrough.com>2010-12-01 12:01:56 -0800
commita49de9811ab4cf39fbdb5a6941ee003b1e489184 (patch)
tree36f972c751e769e460acccc8f017408acf800bdc /activerecord/test/cases
parentb07c2c0fd3130bb69cf8d846e46762a7c3972107 (diff)
downloadrails-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')
-rw-r--r--activerecord/test/cases/ar_schema_test.rb5
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