database.yml.example 570 Bytes
Newer Older
1
mysql: &mysql
2
  adapter: mysql2
3
  host: "localhost"
MrZYX's avatar
MrZYX committed
4 5
  port: 3306
  username: "root"
6
  password: ""
7
#  socket: /tmp/mysql.sock
8
  charset: utf8
9
  collation: utf8_bin
MrZYX's avatar
MrZYX committed
10

11 12 13 14 15 16 17 18 19 20 21 22 23 24
postgres: &postgres
  adapter: postgresql
  host: localhost
  port: 5432
  username: postgres
  password:
  encoding: unicode


common: &common
  # Choose one of the following
  <<: *mysql
  #<<: *postgres

MrZYX's avatar
MrZYX committed
25

26
development:
MrZYX's avatar
MrZYX committed
27
  <<: *common
28
  database: diaspora_development
MrZYX's avatar
MrZYX committed
29

30
production:
MrZYX's avatar
MrZYX committed
31
  <<: *common
Raphael's avatar
Raphael committed
32
  database: diaspora_production
MrZYX's avatar
MrZYX committed
33 34 35

test:
  <<: *common
36
  database: "diaspora_test<%= ENV['TEST_ENV_NUMBER'] %>"