提交 7157067e 编写于 作者: B Britni Alexander

don't establish connection test_database since it gets established in load_schema

上级 bd01f983
......@@ -19,7 +19,6 @@ def self.create_and_load_schema(i, spec_name:)
connection_spec["database"] += "-#{i}"
ActiveRecord::Tasks::DatabaseTasks.create(connection_spec)
ActiveRecord::Base.establish_connection(connection_spec)
ActiveRecord::Tasks::DatabaseTasks.load_schema(connection_spec)
ensure
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations[Rails.env])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册