BEGIN RAILS TRANSITION