clean up rails deprecations