# Two aplications one database

**URL:** <https://www.ruby-forum.com/t/two-aplications-one-database/169919>\
**Category:** Rails\
**Created:** [June 10, 2009, 8:31am UTC](https://www.ruby-forum.com/t/two-aplications-one-database/169919 "2009-06-10T08:31:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakkhoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d6d6ee/32.png) [@bakkhoz](https://www.ruby-forum.com/u/bakkhoz)\
**Post date:** [June 10, 2009, 8:31am UTC](https://www.ruby-forum.com/t/two-aplications-one-database/169919/1 "2009-06-10T08:31:34Z")

</div>

How works Rails if I want to do 2 aplications thath use the same  
database, I don’t know how to manage the migrations.

---

<div class="post-metadata">

**Author:** ![bakkhoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d6d6ee/32.png) [@bakkhoz](https://www.ruby-forum.com/u/bakkhoz)\
**Post date:** [June 10, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/two-aplications-one-database/169919/2 "2009-06-10T12:23:00Z")

</div>

You’ll have to choose one of the projects to be the main one and  
manage the migrations from there.

We were in this situation before but over time our 2 applications  
started to share many stuff and made more sense as one. We ended up  
merging it.

Regards,  
Leonardo Borges

> **[Leonardo Borges](http://leonardoborges.com/)**
>
> Code. Leadership. AI.

On Jun 10, 8:30 am, Sergio A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![bakkhoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d6d6ee/32.png) [@bakkhoz](https://www.ruby-forum.com/u/bakkhoz)\
**Post date:** [June 10, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/two-aplications-one-database/169919/3 "2009-06-10T14:16:37Z")

</div>

Sergio A. wrote:

> How works Rails if I want to do 2 aplications thath use the same  
> database, I don’t know how to manage the migrations.

It might take some extra book-keeping on your part if you ever want to  
support caches in your applications.
