pre update rails