Use Rails4 approach on a query on APN::Notification

Change-Id: I53352e086401e253e7b11e27cd1471641b0e3d96