lib/cadenero/testing_support/database_cleaning.rb in cadenero-0.0.2.b8 vs lib/cadenero/testing_support/database_cleaning.rb in cadenero-0.0.2.b10
- old
+ new
@@ -23,12 +23,12 @@
Apartment::Database.reset
DatabaseCleaner.clean
connection = ActiveRecord::Base.connection.raw_connection
schemas = connection.query(%Q{
SELECT 'drop schema ' || nspname || ' cascade;'
- from pg_namespace
- where nspname != 'public'
- AND nspname NOT LIKE 'pg_%'
+ from pg_namespace
+ where nspname != 'public'
+ AND nspname NOT LIKE 'pg_%'
AND nspname != 'information_schema';
})
schemas.each do |query|
connection.query(query.values.first)
end
\ No newline at end of file