Hello everyone. I''m just beginning my journey with rails and I have many questions though I''ll start with just one. I was wondering what happens if you undermine a migration by changing the database schema manually. For example. I generate a model and in the first migration I create a table with an fname and lname column. I then manually remove the lname column using my favorite SQL administration tool. Forgetting that I''ve made that manual alteration I then create a second migration that adds and email column. When i apply that migration will the model be aware that the db structure was modified outside of the migration sequence and re-apply the missing column? Thanks much. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> I was wondering what happens if you undermine a migration by > changing the database schema > manually.Don''t do that. You''ll be happier. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
No it won''t. On May 17, 9:06 pm, em00guy <jwa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello everyone. I''m just beginning my journey with rails and I have > many questions though I''ll start with just one. I was wondering what > happens if you undermine a migration by changing the database schema > manually. For example. I generate a model and in the first migration I > create a table with an fname and lname column. I then manually remove > the lname column using my favorite SQL administration tool. Forgetting > that I''ve made that manual alteration I then create a second migration > that adds and email column. When i apply that migration will the model > be aware that the db structure was modified outside of the migration > sequence and re-apply the missing column? Thanks much.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---