rails指定pg为开发数据库

2017-08-15 19:20:23来源:cnblogs.com作者:-梦里不知身是客人点击

分享

首先安装一个gem gem 'pg'
然后在database.yml中如下

default: &default  adapter: postgresql  pool: 64  timeout: 5000  encoding: utf-8## PRODUCTION#production:  <<: *default  database: dc-form## Development specific#development:  <<: *default  database: dc-forum# Warning: The database defined as "test" will be erased and# re-generated from your development database when you run "rake".# Do not set this db to the same as development or production.test:  <<: *default  database: dcforum-test

最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台