Sha256: b4cc03c7e1bcdfa5d161c9b88eef0f0ec848d7578bc95d774c28f8caf09eaee1

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

class DatabaseAdapter
  def initialize(opts = {})
    @database = opts[:database]
  end

  def establish_connection!
    ActiveRecord::Base.establish_connection(ENV.fetch('DATABASE_URL', 'postgres://postgres@localhost/activerecord_json_validator_test'))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord_json_validator-3.0.0 spec/support/macros/database/database_adapter.rb
activerecord_json_validator-2.1.5 spec/support/macros/database/database_adapter.rb