Thanks Greg Akins I''m using MongoDB and in Mongodb has some table as: user,comment,photo,relationship And tables have ralationship(user relationship with photos..) .... Could you give me some advice for this problem?Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Gintautas Šimkus
2013-Apr-05 16:04 UTC
Re: Re: How to create 10000 pseudo data for Testing in RoR
As far as cloning development DB into test DB, check out http://stackoverflow.com/questions/2645022/rails-populate-test-database-with-development-data 2013/4/5 Gintautas Šimkus <dihitales-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> You can add data via Rails models, like > > User.create({ <your attributes for user goes there }) > > Just use rails code inside seed.rb to generate whatever you like and then > run rake task which is something like `rake db:seed` > > > 2013/4/5 haxuan lac <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > >> Thanks Greg Akins >> I''m using MongoDB and in Mongodb has some table as: >> user,comment,photo,relationship >> And tables have ralationship(user relationship with photos..) .... >> Could you give me some advice for this problem?Thanks >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > -- > Pagarbiai, > Gintautas >-- Pagarbiai, Gintautas -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.