Jean-Christophe Michel
2006-Mar-23 01:12 UTC
[Rails] migrations: how to have all data dumped into rb ?
Hi, I dumped the schema using rake db_schema_dump. Now how do I create a migration containing all the data I have in my dev db ? -- Jean-Christophe Michel
Roberto Saccon
2006-Mar-23 01:58 UTC
[Rails] migrations: how to have all data dumped into rb ?
I have seen code to achieve that in the Rails Recipes book and at techno-weenie: http://rails.techno-weenie.net/tip/2005/12/23/make_fixtures On 3/22/06, Jean-Christophe Michel <jc.michel@symetrie.com> wrote:> > Hi, > > I dumped the schema using rake db_schema_dump. > Now how do I create a migration containing all the data I have in my dev > db ? > > -- > Jean-Christophe Michel > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060323/54adf94f/attachment.html
Jean-Christophe Michel
2006-Mar-23 08:06 UTC
[Rails] migrations: how to have all data dumped into rb ?
Roberto Saccon wrote:> I have seen code to achieve that in the Rails Recipes book and at > techno-weenie: > > http://rails.techno-weenie.net/tip/2005/12/23/make_fixturesThanks ! Why isn''t there a way to dump content and not only structure ? rake db_dump_content would seem useful to me, why am I the first one to need it ? And how all of you handle the back data flow: having new data from production db go back into development db ? (migrate back to the version in prod, import data from prod, migrate to last dev version) -- Jean-Christophe Michel
Craig White
2006-Mar-23 15:48 UTC
[Rails] migrations: how to have all data dumped into rb ?
On Thu, 2006-03-23 at 09:05 +0100, Jean-Christophe Michel wrote:> Roberto Saccon wrote: > > I have seen code to achieve that in the Rails Recipes book and at > > techno-weenie: > > > > http://rails.techno-weenie.net/tip/2005/12/23/make_fixtures > > Thanks ! > > Why isn''t there a way to dump content and not only structure ? > rake db_dump_content would seem useful to me, why am I the first one to > need it ? > > And how all of you handle the back data flow: having new data from > production db go back into development db ? (migrate back to the version > in prod, import data from prod, migrate to last dev version)---- is this useful to you? http://nubyonrails.com/articles/2005/12/27/dump-or-slurp-yaml-reference-data I''ve been saving it for a rainy day Craig