【Ruby on Rails】modelで前提条件を付ける ref: http://qiita.com/and8-tamura/items/e1d47884cfa9cb88f31a