From 785d04e3109f69d0b9b9f4732179592f0ef04e52 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Fri, 5 Dec 2014 15:54:12 -0700 Subject: 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. --- activerecord/test/cases/adapters/postgresql/network_test.rb | 2 +- activerecord/test/cases/adapters/postgresql/numbers_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/test') 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 -- cgit v1.2.3