Sha256: 0fc9eb110798c9caae084b5e40e2566a2e967d681eafbcb389659aa367238f8f
Contents?: true
Size: 445 Bytes
Versions: 5
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true 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;') end end
Version data entries
5 entries across 5 versions & 1 rubygems