部署时出现 PG 重复 table 错误

Getting PG duplicate table error on deploy

我想从我有三个新迁移文件的分支进行部署。

但是,在部署时,出现错误。

这是日志输出:

DEBUG [50e68bc0]    ==  CreateLimitGroups: migrating 
==============================================
DEBUG [50e68bc0]    -- create_table(:limit_groups)
DEBUG [50e68bc0]    rake aborted!
DEBUG [50e68bc0]    An error has occurred, this and all later migrations canceled:
DEBUG [50e68bc0]    
DEBUG [50e68bc0]    PG::DuplicateTable: ERROR:  relation "limit_groups" already exists

为什么会这样? 可能来自架构版本冲突?

此消息表示您已经拥有此 table。您可以在 postgresql 菜单中手动删除它。

请确保此 table 为空。