model refers to UpminModel, not the ActiveRecord model