modified railties dependency to ~> 4