Use Mongoid::Timestamps module for created_at
Use ended_at for conditions instead of created_at