提交 18a62acd 编写于 作者: A Aaron Patterson

disable transactions for this test

上级 ee190b8e
...@@ -3,13 +3,16 @@ ...@@ -3,13 +3,16 @@
module ActiveRecord module ActiveRecord
class Migration class Migration
class LoggerTest < ActiveRecord::TestCase class LoggerTest < ActiveRecord::TestCase
# mysql can't roll back ddl changes
self.use_transactional_fixtures = false
Migration = Struct.new(:name, :version) do Migration = Struct.new(:name, :version) do
def migrate direction def migrate direction
# do nothing # do nothing
end end
end end
def initialize(*args) def setup
super super
ActiveRecord::SchemaMigration.create_table ActiveRecord::SchemaMigration.create_table
ActiveRecord::SchemaMigration.delete_all ActiveRecord::SchemaMigration.delete_all
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册