设为首页 加入收藏

TOP

rails指定pg为开发数据库
2017-10-09 13:27:20 】 浏览:5628
Tags:rails 指定 开发 数据库

首先安装一个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
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇学习笔记TF036:实现Bidirectional.. 下一篇SASS之继承,混合宏,占位符的用法

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目