Sha256: 556af17bdf6b0c5e0249add720ad504d79e75d737558ea13bed392a7a5136f76
Contents?: true
Size: 629 Bytes
Versions: 7
Compression:
Stored size: 629 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
7 entries across 7 versions & 1 rubygems