Update railties dependency to more version 3.1