I think you are missing a 'to' after 'prior'. Let´s call it `started_at_must_be_prior_to_ended_at`.