Permalink
Browse files

Be sure to clear schema cache

  • Loading branch information...
1 parent 5a350cd commit 5538a020773a44ff8b43c03ba3b84e9fcade534e @amatsuda amatsuda committed Jan 18, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 activerecord/test/cases/migration_test.rb
@@ -30,6 +30,7 @@ def setup
Reminder.reset_column_information
ActiveRecord::Migration.verbose = true
ActiveRecord::Migration.message_count = 0
+ ActiveRecord::Base.connection.schema_cache.clear!
end
def teardown
@@ -430,6 +431,8 @@ class BulkAlterTableMigrationsTest < ActiveRecord::TestCase
def setup
@connection = Person.connection
@connection.create_table(:delete_me, :force => true) {|t| }
+ Person.reset_column_information
+ Person.reset_sequence_name
end
def teardown

0 comments on commit 5538a02

Please sign in to comment.