我有一个使用Rails和PostgreSQL的本地项目。我将其上传到我的AWS Amazon Linux AMI上。我已经在服务器上运行了使用Rails和PostgreSQL的测试项目。但是,当我上传了我的本地项目并尝试运行时,出现了问题。
rake db:migrate
I get the following error:
ActiveRecord::StatementInvalid: PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations
我看到一些类似的问题,但都没有帮助。我已经设置了适当的角色并进行了连接。
GRANT ALL PRIVILEGES ON TABLE schema_migrations TO <your_role>;
- eboswort