diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-12-05 15:54:12 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-05 15:54:12 -0700 |
commit | 785d04e3109f69d0b9b9f4732179592f0ef04e52 (patch) | |
tree | 83d5f3269a56ad4325838507b1852c5f8cfa1e69 /activerecord/test | |
parent | 670e7941d5482f7124420965d4fbd7bea45a3155 (diff) | |
download | rails-785d04e3109f69d0b9b9f4732179592f0ef04e52.tar.gz rails-785d04e3109f69d0b9b9f4732179592f0ef04e52.tar.bz2 rails-785d04e3109f69d0b9b9f4732179592f0ef04e52.zip |
Add `force: true` to tables created in PG tests
If the tests are interupted and the teardown block doesn't run, the
developer needs to delete these manually in order to be able to run the
tests again.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/network_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/numbers_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/network_test.rb b/activerecord/test/cases/adapters/postgresql/network_test.rb index 73e0fb5acd..4e49ea1e02 100644 --- a/activerecord/test/cases/adapters/postgresql/network_test.rb +++ b/activerecord/test/cases/adapters/postgresql/network_test.rb @@ -8,7 +8,7 @@ class PostgresqlNetworkTest < ActiveRecord::TestCase setup do @connection = ActiveRecord::Base.connection - @connection.create_table('postgresql_network_addresses') do |t| + @connection.create_table('postgresql_network_addresses', force: true) do |t| t.inet 'inet_address', default: "192.168.1.1" t.cidr 'cidr_address', default: "192.168.1.0/24" t.macaddr 'mac_address', default: "ff:ff:ff:ff:ff:ff" diff --git a/activerecord/test/cases/adapters/postgresql/numbers_test.rb b/activerecord/test/cases/adapters/postgresql/numbers_test.rb index d90e9ccc66..70aa898439 100644 --- a/activerecord/test/cases/adapters/postgresql/numbers_test.rb +++ b/activerecord/test/cases/adapters/postgresql/numbers_test.rb @@ -5,7 +5,7 @@ class PostgresqlNumberTest < ActiveRecord::TestCase setup do @connection = ActiveRecord::Base.connection - @connection.create_table('postgresql_numbers') do |t| + @connection.create_table('postgresql_numbers', force: true) do |t| t.column 'single', 'REAL' t.column 'double', 'DOUBLE PRECISION' end |