fix cross rails version deprecation warnings