Reputation: 110960
In Rails I have a model message: id, content
I want to run a query that does something the along the lines of.
if the current @message.content, is equal to any @message.content that was created_at less than 10 mins from now, return true else return false.
How would I go about structing an activerecord lookup like that? Thanks
Upvotes: 0
Views: 210