Fix Rails compatibility layer validation messages