views:

59

answers:

3

Hello guys,

We have an admin application used to manage member data and it was built in 2.1, has been running for about a year. Now that all inputs and data massage is done, our client wants to start building member site, members will have access to data the administrators have been inputting.

Here's the question, should we start a new Rails app hooked to the same admin database or should we create a new Rails app in different db with master-slave settings? The good thing about creating a new Rails app is obviously taking advantage of the new version, which we like. Or ..maybe just build the member site in the same admin app?

THanks,

+1  A: 

Or build a new app using a copy of the existing database?

Max Williams
the copy will still need to be in sync with the existing db because admins are still going to be inputting more data in the future. So i guess you are suggesting master-slave?
penger
+1  A: 

There's no reason the two applications cannot share the same database.

However, there's probably a number of reasons why they shouldn't. But, the only way you're going to figure those out are by going through the changelog of ActiveRecord's database adaptors.

EmFi
+2  A: 

Why don't you want to build the member site in the same admin app? Too much legacy?

You can use the same database but the problem is you will have to enforce any conditions you have in your models directly in your database (mandatory fields, model relationship and so on).

And I can see a lot of duplication code happening between the two apps. At least for the models. Which is really wrong :(

I don't recommend making two separate applications but It is hard to answer without looking at your app and without knowing more details.

Aurélien Bottazzini