Hello, I apologize in advance if this has been brought up previously, I can''t seem to find anything on it. I was wondering whether I should be using migrations or something else for a fixed set of data that would be changed over time. Here''s an example: I''m about to set a model for languages that I originally preset (i.e. English, French, etc.) but I imagine that I would be adding on to this list after deploying. How do I ensure that I would be able to do this without any potential problems in the future. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Instead of migration you could use fixtures. There is a plugin for seeding data named seed-fu, http://intridea.com/2008/4/20/seed-fu-simple-seed-data-for-rails , but I have never used it on one of my project. good luck. mike On May 30, 2008, at 8:03 PM, Matthew Park wrote:> > Hello, > > I apologize in advance if this has been brought up previously, I can''t > seem to find anything on it. > > I was wondering whether I should be using migrations or something else > for a fixed set of data that would be changed over time. > > Here''s an example: > > I''m about to set a model for languages that I originally preset (i.e. > English, French, etc.) but I imagine that I would be adding on to this > list after deploying. How do I ensure that I would be able to do this > without any potential problems in the future. > > Thanks in advance. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matthew On Fri, May 30, 2008 at 5:03 PM, Matthew Park <MatthewTPark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I was wondering whether I should be using migrations or something else > for a fixed set of data that would be changed over time.It is common to use migrations for this. Although that''s not really what they''re intended for, there isn''t a better alternative. Brandon -------------------------------------------------------------------------------- Sessions by Collective Idea: Ruby on Rails training in a vacation setting http://sessions.collectiveidea.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-/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 -~----------~----~----~----~------~----~------~--~---