Fixed Data Sets

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.

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

Matthew

On Fri, May 30, 2008 at 5:03 PM, Matthew P. [email protected]
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