Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails fixture without timestamping

without_timestamping_of Article, Comment, User do
  Factory(:article, :created_at => 1.week.ago, :updated_at => 1.week.ago)
  Factory(:comment, :created_at => 1.day.ago)
  Factory(:user, :updated_at => 5.hours.ago)
end
Source by www.monterail.com #
 
PREVIOUS NEXT
Tagged: #rails #fixture #timestamping
ADD COMMENT
Topic
Name
3+6 =