Remove hard-version requirement of railties to work with future Rails Versions

Remove the hard-coded version of railties (~> 3.1) to ge to work with future versions