提交 32f30d22 编写于 作者: S Sean Griffin

Add `force: true` to table created in tests

If the test is interrupted in a way that the teardown block fails to
run, the tests will fail to run until the table is removed manually
without this option.
上级 b0f2b94d
......@@ -10,7 +10,7 @@ class PostgresqlMoney < ActiveRecord::Base; end
setup do
@connection = ActiveRecord::Base.connection
@connection.execute("set lc_monetary = 'C'")
@connection.create_table('postgresql_moneys') do |t|
@connection.create_table('postgresql_moneys', force: true) do |t|
t.column "wealth", "money"
t.column "depth", "money", default: "150.55"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册