Relax railties dependency