Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要发布一个简单的 Elixir 库/hex 包,将一个表添加到它的父应用程序的数据库中。我应该创建一个复制到父应用程序中的迁移,还是应该考虑创建一个生成器?
我认为生成迁移的混合任务将是正确的方法。
$ mix package.install
还有一些项目要求用户手动添加迁移,例如 GuardianDb。
https://github.com/hassox/guardian_db