📜  没有时间戳的 rails 夹具 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:00.449000             🧑  作者: Mango

代码示例3
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