Forum: Ruby on Rails migrations: how to have all data dumped into rb ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eb96620826312516bb4a2d6deeee6688?d=identicon&s=25 Jean-Christophe Michel (Guest)
on 2006-03-23 02:12
(Received via mailing list)
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
30269682335f1fb247d71969fa715b5e?d=identicon&s=25 Roberto Saccon (rsaccon)
on 2006-03-23 02:58
(Received via mailing list)
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
Eb96620826312516bb4a2d6deeee6688?d=identicon&s=25 Jean-Christophe Michel (Guest)
on 2006-03-23 09:06
(Received via mailing list)
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)

--
Jean-Christophe Michel
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2006-03-23 16:48
(Received via mailing list)
On Thu, 2006-03-23 at 09:05 +0100, Jean-Christophe Michel wrote:
> 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...

I've been saving it for a rainy day

Craig
This topic is locked and can not be replied to.