Fixes the rails dependency version.