I have a model Question with \"question_id\", \"elapsed_time\", \"allowed_time\" and \"status\" as its fields and a controller named Reporting that receive JSON containing q
My model's name was in plural form. Change it to singular and rails will generate timestamp.
See how rails generate timestamp : https://github.com/rails/rails/blob/master/activerecord/lib/active_record/fixtures.rb#L560
As explained in https://stackoverflow.com/a/4350202/978525 you can add something like the following to your fixture objects:
objectA:
foo: something
created_at: <%= 5.day.ago.to_s(:db) %>
updated_at: <%= 5.day.ago.to_s(:db) %>