Sha256: a01ef87a5fc9e41d09085ffdc007c2dde2ff6830e9d24476d224cdde76af8fc3

Contents?: true

Size: 282 Bytes

Versions: 5

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

require_relative 'database_adapter'

class PostgresqlAdapter < DatabaseAdapter
  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

Version Path
activerecord_json_validator-3.0.0 spec/support/macros/database/postgresql_adapter.rb
activerecord_json_validator-2.1.5 spec/support/macros/database/postgresql_adapter.rb
activerecord_json_validator-2.1.4 spec/support/macros/database/postgresql_adapter.rb
activerecord_json_validator-2.1.3 spec/support/macros/database/postgresql_adapter.rb
activerecord_json_validator-2.1.2 spec/support/macros/database/postgresql_adapter.rb