Changed rails app to legacy