Added hour constraint to migration