validates:policy_id,uniqueness: {scope: [:oncall_schedule_id,:status,:elapsed_time_seconds],message: _('must have a unique schedule, status, and elapsed time')}
validates:policy_id,uniqueness: {scope: [:oncall_schedule_id,:status,:elapsed_time_seconds],message: _('must have a unique schedule, status, and elapsed time')}
it{is_expected.tovalidate_uniqueness_of(:policy_id).scoped_to([:oncall_schedule_id,:status,:elapsed_time_seconds]).with_message('must have a unique schedule, status, and elapsed time')}
it{is_expected.tovalidate_uniqueness_of(:policy_id).scoped_to([:oncall_schedule_id,:status,:elapsed_time_seconds]).with_message('must have a unique schedule, status, and elapsed time')}