枫叶飞翔 发表于 2016-11-19 09:09:39

Rails3开发环境postgresql连接配置

Rails版本:3.0.9
postgresql版本:8.4。
注:安装postgresql之前,首先要安装libpq-dev,再安装postgresql数据库管理系统
    使用pgadmin3,来进行数据库的管理

development:
encoding: UTF-8
adapter: postgresql
username: postgres
port: 5432
host: localhost
database: demo_development
timeout: 5000
password: ***


test:
encoding: UTF-8
adapter: postgresql
username: postgres
port: 5432
host: localhost
database: demo_test
timeout: 5000
password: ***

production:
encoding: UTF-8
adapter: postgresql
username: postgres
port: 5432
host: localhost
database: demo_production
timeout: 5000
password: ***
页: [1]
查看完整版本: Rails3开发环境postgresql连接配置