Remove hard-version railties requirement

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