# Migration

**URL:** <https://www.ruby-forum.com/t/migration/197030>\
**Category:** Rails\
**Created:** [March 19, 2010, 5:57am UTC](https://www.ruby-forum.com/t/migration/197030 "2010-03-19T05:57:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [March 19, 2010, 5:57am UTC](https://www.ruby-forum.com/t/migration/197030/1 "2010-03-19T05:57:37Z")

</div>

Hi all,

I have migrated with some tables in my application. After some days i  
need to add few more tables to database. The initial tables in database  
have some data. when i try to migrate the database for second time with  
rake db:migrate it is saying the alredy table exist

 and  
rake is aborted. i dont want to loose the old data and i want to add new  
tables to alredy exiested database

how to do this. Please help me.

Regards,  
Rajkumar.

---

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [March 19, 2010, 7:32am UTC](https://www.ruby-forum.com/t/migration/197030/2 "2010-03-19T07:32:17Z")

</div>

Care to post your migration script?

I suspect you might be creating a table instead of doing a 'add\_column"

David

On Mar 19, 2010 12:58 PM, “Rajkumar S.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

Hi all,

I have migrated with some tables in my application. After some days i  
need to add few more tables to database. The initial tables in database  
have some data. when i try to migrate the database for second time with  
rake db:migrate it is saying the alredy table exist

 and  
rake is aborted. i dont want to loose the old data and i want to add new  
tables to alredy exiested database

how to do this. Please help me.

## Regards, Rajkumar.

Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

–  
You received this message because you are subscribed to the Google  
Groups  
“Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [March 19, 2010, 8:47am UTC](https://www.ruby-forum.com/t/migration/197030/3 "2010-03-19T08:47:47Z")

</div>

No he is making add coulmn in the Existing one migration file . i think  
so

On Fri, Mar 19, 2010 at 12:01 PM, David C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have migrated with some tables in my application. After some days i  
> Rajkumar.  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Thanks:  
Rajeev sharma
