remove check is defined Rails