提交 5538a020 编写于 作者: A Akira Matsuda

Be sure to clear schema cache

上级 5a350cdb
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册