Sha256: e6f3789a8a66dc3e669b060dbf951be63436be5f3c45ce1459fa01f822424a5f

Contents?: true

Size: 686 Bytes

Versions: 44

Compression:

Stored size: 686 Bytes

Contents

#################
##     SETTINGS FOR DATABASES
#
# this file contains common settings and rake tasks for ORM gems.
#
# please review / edit the settings you need.
# 
############
## Sequel
# more info @:
# http://sequel.jeremyevans.net
if defined? Sequel
  
  if defined? PG && ENV['DYNO']
    # A default Postgres connection for Heroku:
    DB = Sequel.connect(ENV['HEROKU_POSTGRESQL_RED_URL'])
  else
    # use db/config.yaml to connect to database
    DB = Sequel.connect( YAML::load(  File.open( Root.join('db', 'config.yml').to_s )  )[ ENV["ENV"].to_s ] )
  end
  if defined? Rake
##########
# start rake segment

# not yet implemented

# end rake segment
##########
  end

end


Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
plezi-0.12.22 resources/db_sequel_config.rb
plezi-0.12.21 resources/db_sequel_config.rb
plezi-0.12.20 resources/db_sequel_config.rb
plezi-0.12.19 resources/db_sequel_config.rb
plezi-0.12.18 resources/db_sequel_config.rb
plezi-0.12.17 resources/db_sequel_config.rb
plezi-0.12.16 resources/db_sequel_config.rb
plezi-0.12.15 resources/db_sequel_config.rb
plezi-0.12.14 resources/db_sequel_config.rb
plezi-0.12.13 resources/db_sequel_config.rb
plezi-0.12.11 resources/db_sequel_config.rb
plezi-0.12.10 resources/db_sequel_config.rb
plezi-0.12.9 resources/db_sequel_config.rb
plezi-0.12.8 resources/db_sequel_config.rb
plezi-0.12.7 resources/db_sequel_config.rb
plezi-0.12.6 resources/db_sequel_config.rb
plezi-0.12.5 resources/db_sequel_config.rb
plezi-0.12.4 resources/db_sequel_config.rb
plezi-0.12.3 resources/db_sequel_config.rb
plezi-0.12.2 resources/db_sequel_config.rb