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

前端 未结 7 1228
我寻月下人不归
我寻月下人不归 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条回答
  •  青春惊慌失措
    2020-12-08 07:03

     development:
      adapter: postgresql
      encoding: utf8
      database: name
      username: hading
      password: my_db_password
      host: localhost # not mandatory
      pool: 5 # not mandatory
      timeout: 5000 # not mandatory
    

提交回复
热议问题