Sha256: b38f7bbd31ff0264bcd1be46c8c5658ef0694833522d3a46c1b9dd3dccc2ff8c
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true require 'sequel' require 'proxes/services/logger' # Delete DATABASE_URL from the environment, so it isn't accidently # passed to subprocesses. DATABASE_URL may contain passwords. DB = Sequel.connect(ENV['RACK_ENV'] == 'production' ? ENV.delete('DATABASE_URL') : ENV['DATABASE_URL']) DB.loggers << ProxES::Services::Logger.instance DB.extension(:pagination) Sequel::Model.plugin :auto_validations Sequel::Model.plugin :update_or_create # Sequel::Model.plugin :prepared_statements # Sequel::Model.plugin :prepared_statements_associations Sequel::Model.plugin :timestamps, update_on_create: true
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proxes-0.4.0 | lib/proxes/db.rb |
proxes-0.3.6 | lib/proxes/db.rb |