Shared models between two Rails apps – what is the ideal solution for Workflow?

drop the models project(put models into one of other parts, i’d suggest whatever you consider “more important”), put all projects into single repository(separate project folders) and make symlinks to models/libs/apis/whatever

your code is highly coupled together and you often need to make changes to few projects at once(like updating models and updating APIs that use them, etc)

one nice thing about single-repo-symlink setup is that your commits will be less fragmented and will usually represent full feature implementation – easier to track bugs, read history and maintain codebase

also when you deploy you don’t need to read from many repositories – one less point of failure right there

release process is also simpler with such model as branch will now hold the scope of all projects

there are some drawbacks like symlinks dont work that well on windows and whatnot but for me it works perfectly

Leave a Comment