Update model.rb

updated to new arel-syntax to get rid of annoying warnings