change rails app to rails engine