aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-22 12:48:20 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-22 12:49:34 -0700
commit32f30d22d54556577c1dc6d4852c6f4df6f27c62 (patch)
treec55442f860f4718538a757a35385f342100bde45
parentb0f2b94dd30c9ceae98efe5f5f5a589eb68a6286 (diff)
downloadrails-32f30d22d54556577c1dc6d4852c6f4df6f27c62.tar.gz
rails-32f30d22d54556577c1dc6d4852c6f4df6f27c62.tar.bz2
rails-32f30d22d54556577c1dc6d4852c6f4df6f27c62.zip
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.
-rw-r--r--activerecord/test/cases/adapters/postgresql/money_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/money_test.rb b/activerecord/test/cases/adapters/postgresql/money_test.rb
index 87183174f2..54cff192c1 100644
--- a/activerecord/test/cases/adapters/postgresql/money_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/money_test.rb
@@ -10,7 +10,7 @@ class PostgresqlMoneyTest < ActiveRecord::TestCase
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