Sha256: ce49d9c97be06cff7e9501bcc3bafe7d2378e74a64b96a01a640b731137959ef

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 Bytes

Contents

require 'config'

require 'active_record'
require 'activerecord-precount'

require 'support/config'
require 'support/connection'

# Connect to the database
ARTest.connect

def load_schema
  # silence verbose schema loading
  original_stdout = $stdout
  $stdout = StringIO.new

  adapter_name = ActiveRecord::Base.connection.adapter_name.downcase

  load SCHEMA_ROOT + "/schema.rb"
ensure
  $stdout = original_stdout
end

load_schema

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
activerecord-precount-0.7.0 test/cases/db_config.rb
activerecord-precount-0.7.0.beta1 test/cases/db_config.rb
activerecord-precount-0.6.3 test/cases/db_config.rb
activerecord-precount-0.6.2 test/cases/db_config.rb
activerecord-precount-0.6.1 test/cases/db_config.rb
activerecord-precount-0.6.0 test/cases/db_config.rb
activerecord-precount-0.5.1 test/cases/db_config.rb
activerecord-precount-0.5.0 test/cases/db_config.rb
activerecord-precount-0.4.3 test/cases/db_config.rb
activerecord-precount-0.4.2 test/cases/db_config.rb
activerecord-precount-0.4.1 test/cases/db_config.rb
activerecord-precount-0.4.0 test/cases/db_config.rb