Update model.rb

Add support to change rating