diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 17:08:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 17:08:01 -0800 |
commit | 3ec212e3c9c815e9993cbea409c60774ea75cd30 (patch) | |
tree | 56f77db136192f65eb4e3a1417d8b989e56cfe37 /activerecord/test/cases/ar_schema_test.rb | |
parent | c15c14563e6604aab232336b16e14f1f235cc19d (diff) | |
download | rails-3ec212e3c9c815e9993cbea409c60774ea75cd30.tar.gz rails-3ec212e3c9c815e9993cbea409c60774ea75cd30.tar.bz2 rails-3ec212e3c9c815e9993cbea409c60774ea75cd30.zip |
rolling out migrated_at until I can fix the build
Diffstat (limited to 'activerecord/test/cases/ar_schema_test.rb')
-rw-r--r-- | activerecord/test/cases/ar_schema_test.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/activerecord/test/cases/ar_schema_test.rb b/activerecord/test/cases/ar_schema_test.rb index df51a6e4ba..588adc38e3 100644 --- a/activerecord/test/cases/ar_schema_test.rb +++ b/activerecord/test/cases/ar_schema_test.rb @@ -39,39 +39,4 @@ if ActiveRecord::Base.connection.supports_migrations? end end - class ActiveRecordSchemaMigrationsTest < ActiveRecordSchemaTest - def setup - super - @sm_table = ActiveRecord::Migrator.schema_migrations_table_name - @connection.execute "DELETE FROM #{@connection.quote_table_name(@sm_table)}" - end - - def test_migration_adds_row_to_migrations_table - 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 - - assert_equal "123001", rows[0]["version"] - assert_equal "", rows[0]["name"] - assert_not_nil(rows[0]["migrated_at"]) - - assert_equal "123002", rows[1]["version"] - assert_equal "add_magic_power_to_unicorns", rows[1]["name"] - assert_not_nil(rows[1]["migrated_at"]) - end - - def test_define_clears_schema_migrations - assert_nothing_raised do - ActiveRecord::Schema.define do - migration("123001") - end - ActiveRecord::Schema.define do - migration("123001") - end - end - end - end - end |