update rails app with final structure