Rails RSpec with Multiple Databases

后端 未结 4 904
情书的邮戳
情书的邮戳 2021-01-28 00:05

I run a Rails app, and we\'re in the process of splitting out our signup process to a separate app. The signup app has its own separate database (for CMS and collecting prospect

4条回答
  •  囚心锁ツ
    2021-01-28 00:46

    Ryan, we were also in the process of migrating from one datastore to another. We needed to develop against two databases and maintain separate migrations and fixtures for each.

    I created a gem called Secondbase to help with this. Essentially, it allows you to manage two databases seamlessly in a single Rails app. Perhaps it will solve your issue as well: https://github.com/karledurante/secondbase

提交回复
热议问题