monterail / guidelines

[DEPRECATED] We are Ruby on Rails experts from Poland. Think hussars. Solid & winged. These are our guidelines.
71 stars 17 forks source link

Default database.yml proposal #164

Closed sheerun closed 11 years ago

sheerun commented 11 years ago
# PostgreSQL. Versions 8.2 and up are supported.
#
# Install the pg driver:
#   gem install pg
# On OS X with Homebrew:
#   gem install pg -- --with-pg-config=/usr/local/bin/pg_config
#

default: &default
  adapter: postgresql
  encoding: unicode
  pool: 5
  username: <%= ENV['USER'] %>
  # min_messages: warning
  #   debug5, debug4, debug3, debug2, debug1,
  #   log, notice, warning, error, fatal, and panic

development:
  <<: *default
  database: <%= `echo $(basename $PWD)_development` %>

test:
  <<: *default
  database: <%= `echo $(basename $PWD)_test` %>

production:
  <<: *default
  database: <%= `echo $(basename $PWD)_production` %>

Defaults

teamon commented 11 years ago
sheerun commented 11 years ago

When was last time you've changed directory name, but didn't change db name?

teamon commented 11 years ago

prefix-repo -> repo

sheerun commented 11 years ago

wow