I have a Rails app A with a postgres database. I also have another Rails app B with a postgres database. Now I want to reuse some of the data of app B in app A. What is the best way to import that data? I assume a rake task can be used for this, but how would you do this?
Do you need to add the connection details of the database of app B in the database.yml of app A? And how do I actually get the data?