Ruby on Rails: How can i edit database.yml for postgresql?

前端 未结 7 1215
我寻月下人不归
我寻月下人不归 2020-12-08 06:26

rails new app=>

The current database.yml is like that=>

# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your         


        
7条回答
  •  Happy的楠姐
    2020-12-08 06:59

    Simply:

    development:
      adapter: postgresql
      encoding: unicode
      database: blog_development
      pool: 5
      username: blog
      password:
      host: localhost
    

    Source: Configuring Rails Applications

提交回复
热议问题