ruby on rails - Use time condition with Active Record -
I am trying to make a request with the condition of time I want something like this:
model. Where {updated_at & gt; Definitely this last code is not working. I have not found any solution to this problem till now.
Do anyone have any ideas to solve this problem?
Finally, I did it like this:
models . Where {updated_at & lt; Date time Now - 10.minutes}
Comments
Post a Comment