Sha256: dc2a33ccd6fa6f9b813be257ea27131ad41c50ffc67d71161945583e4cccad6d
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
require_relative 'database_adapter' class PostgresqlAdapter < DatabaseAdapter def database_configuration { adapter: 'postgresql', database: @database, user: 'postgres', schema_search_path: 'public' } 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
microscope-1.1.1 | spec/support/macros/database/postgresql_adapter.rb |
microscope-1.1.0 | spec/support/macros/database/postgresql_adapter.rb |