Em 18-02-2013 08:05, mrloz escreveu:
...
Additionally, rails doesn't (to my knowledge) provide a way to run
db:seed after you have a live system which doesn't try and push prior
seeds in too. What is the recommended way to add seeded values to new
tables in a live system?
I believe supporting a "seeds" table in addition to the migrations table
would be a great idea. The same way we currently have migrations under
db/migrations/ it would be great if we could have our seeds under
db/seeds/. Then "rake db:migrate" would also run "db:seed" or whatever
other task name you might prefer. When running rake db:reset the seed
migration would be run after restoring the DB infra-structure.
That sounds like a good tool to add to AR migrations.
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.