2012/10/23

railsの複合カラムのユニーク制限

validates_uniqueness_of :hoge_id, :scope => :huga_id
って感じ余裕。

0 件のコメント: