rubyonrailsin

A Ruby and Rails talk

Friday, April 2, 2010


[Rails] Re: Loading Fixtures Earlier

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

> Is there any way to have fixtures loaded earlier on in the testing
> process, or is there some proper Rails-provided way to seed the test
> database?

Yes. From 2.3.4 onwards there is db/seeds.rb file .You can write
put data there. For more information please watch this Railscast

http://railscasts.com/episodes/179-seed-data


Sijo
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive