add constraint for columns :locale && referance_table_id

add constraint for columns :locale && referance_table_id