Update rails constraint