1- # PostgreSQL. Versions 8.2 and up are supported.
2- #
3- # Install the pg driver:
4- # gem install pg
5- # On OS X with Homebrew:
6- # gem install pg -- --with-pg-config=/usr/local/bin/pg_config
7- # On OS X with MacPorts:
8- # gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
9- # On Windows:
10- # gem install pg
11- # Choose the win32 build.
12- # Install PostgreSQL and put its /bin directory on your path.
13- #
14- # Configure Using Gemfile
15- # gem 'pg'
16- #
171default : &default
182 adapter : postgresql
193 encoding : unicode
@@ -27,59 +11,10 @@ development:
2711 port : 5432
2812 host : localhost
2913
30- # The specified database role being used to connect to postgres.
31- # To create additional roles in postgres see `$ createuser --help`.
32- # When left blank, postgres will use the default role. This is
33- # the same name as the operating system user that initialized the database.
34- # username: helpy
35-
36- # The password associated with the postgres role (username).
37- # password:
38-
39- # Connect on a TCP socket. Omitted by default since the client uses a
40- # domain socket that doesn't need configuration. Windows does not have
41- # domain sockets, so uncomment these lines.
42- # host: localhost
43-
44- # The TCP port the server listens on. Defaults to 5432.
45- # If your server runs on a different port number, change accordingly.
46- # port: 5432
47-
48- # Schema search path. The server defaults to $user,public
49- # schema_search_path: myapp,sharedapp,public
50-
51- # Minimum log levels, in increasing order:
52- # debug5, debug4, debug3, debug2, debug1,
53- # log, notice, warning, error, fatal, and panic
54- # Defaults to warning.
55- # min_messages: notice
56-
57- # Warning: The database defined as "test" will be erased and
58- # re-generated from your development database when you run "rake".
59- # Do not set this db to the same as development or production.
6014test :
6115 << : *default
6216 database : helpy_test
6317
64- # As with config/secrets.yml, you never want to store sensitive information,
65- # like your database password, in your source code. If your source code is
66- # ever seen by anyone, they now have access to your database.
67- #
68- # Instead, provide the password as a unix environment variable when you boot
69- # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
70- # for a full rundown on how to provide these environment variables in a
71- # production deployment.
72- #
73- # On Heroku and other platform providers, you may have a full connection URL
74- # available as an environment variable. For example:
75- #
76- # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
77- #
78- # You can use this database configuration with:
79- #
80- # production:
81- # url: <%= ENV['DATABASE_URL'] %>
82- #
8318production :
8419 << : *default
8520 database : helpy_production
0 commit comments