小编Adr*_*ian的帖子

无法使用 PostgreSql 和 Rails 创建数据库

我是一名初级 Web 开发人员,正在尝试开发我的第一个 Ruby on Rails 项目。我正在按照本指南在 render.com 上部署应用程序。

但是,安装rails并按照此命令创建数据库后(我在Ubuntu上):

rails db:create
Run Code Online (Sandbox Code Playgroud)

我在命令窗口中遇到这个问题:


We could not find your database: postgres. Which can be found in the database configuration file located at config/database.yml.

To resolve this issue:

- Did you create the database for this app, or delete it? You may need to create your database.
- Has the database name changed? Check your database.yml config has the correct database name.

To create your database, run:

        bin/rails db:create
Couldn't create 'mysite_development' …
Run Code Online (Sandbox Code Playgroud)

database postgresql ruby-on-rails

6
推荐指数
1
解决办法
4854
查看次数

标签 统计

database ×1

postgresql ×1

ruby-on-rails ×1