aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema_test_postgresql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/schema_test_postgresql.rb')
-rw-r--r--activerecord/test/schema_test_postgresql.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/test/schema_test_postgresql.rb b/activerecord/test/schema_test_postgresql.rb
index 7f7d85ae43..c743a86195 100644
--- a/activerecord/test/schema_test_postgresql.rb
+++ b/activerecord/test/schema_test_postgresql.rb
@@ -1,6 +1,8 @@
require 'abstract_unit'
class SchemaTest < Test::Unit::TestCase
+ self.use_transactional_fixtures = false
+
SCHEMA_NAME = 'test_schema'
TABLE_NAME = 'things'
COLUMNS = [
@@ -15,8 +17,7 @@ class SchemaTest < Test::Unit::TestCase
end
def teardown
- @connection.execute "DROP TABLE #{SCHEMA_NAME}.#{TABLE_NAME}"
- @connection.execute "DROP SCHEMA #{SCHEMA_NAME}"
+ @connection.execute "DROP SCHEMA #{SCHEMA_NAME} CASCADE"
end
def test_with_schema_prefixed_table_name