update app.rb according to new model type