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 <table name> 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/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Surabhi" <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 <table name> 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/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> . For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Chua <zhchua-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 Surabhi" <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 <table name> 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/. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- Thanks: Rajeev sharma -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.