Changed the required version of Railties from ~> to > 3.1