我以为它会是这样的:
UserHistory.where(“created_at > ?”, date).where(and staffuser=xyz, and action=edit post).destroy_all
但使用了正确的语法