Best way to share ActiveRecord models and data between different Rails Apps?

前端 未结 1 764
别跟我提以往
别跟我提以往 2021-02-05 18:12

I have several rails applications that will use the same core set of Models and data, for example:

  • Apps
  • Developers
  • Categories

Each

1条回答
  •  说谎
    说谎 (楼主)
    2021-02-05 19:14

    I'm using a shared database to solve the shared data problem between heroku and a server on EC2 which does some background processing I can't do on heroku. In my case I'm using the same application, but really all I'm doing is using delayed_job on the EC2, so I'm only using the models from the app there. If I were going to use them in another application, I would probably go through the trouble of creating a gem to use between them.

    0 讨论(0)
提交回复
热议问题