rails-engine / flow_core

FlowCore is a Rails engine to help you build your automation or business process application.
MIT License
172 stars 17 forks source link

使用 pg 时,db migration 会报错 #5

Closed dnnta closed 4 years ago

dnnta commented 4 years ago

demo 里 sqlite 没有问题,但是使用 pg 就会报错,PG::UndefinedTable: ERROR: relation "flow_core_tasks" does not exist. 应该是创建外建时,对应的 table 还没有创建。

解决办法:在 create_table 后使用 add_foreign_key 创建外键

jasl commented 4 years ago

我稍等修复,感谢!

jasl commented 4 years ago

已修复!

jasl commented 4 years ago

如果还有新的问题,随时开 Issue 或者微信我!感谢

jasl commented 4 years ago

啰嗦一句,我在另一个分支写文档,可能要写一阵 https://github.com/rails-engine/flow_core/blob/wip-new-readme/README.zh-CN.md

这一篇讲了 Dummy 的实现过程,使用时候可以参考

https://github.com/rails-engine/flow_core/blob/wip-new-readme/guides/how_dummy_built.zh-CN.md

有问题随时联系