I had to create a scope to create active jobs, but this feels a little odd and honestly it's tightly coupled to PosgresSQL:
scope :active, -> { where('reviewed_at NOTNULL and paid_at NOTNULL and end_at >= ?', Date.today) }
Would you write this differently? Thank you