spec/support/macros/database/postgresql_adapter.rb in microscope-1.0.1 vs spec/support/macros/database/postgresql_adapter.rb in microscope-1.1.0
- old
+ new
@@ -11,7 +11,9 @@
end
def reset_database!
ActiveRecord::Base.connection.execute('drop schema public cascade;')
ActiveRecord::Base.connection.execute('create schema public;')
+ rescue ActiveRecord::NoDatabaseError
+ nil
end
end