Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リフトのマッパーで一意の制約を作成するにはどうすればよいですか?
MetaMapperオブジェクトに以下を追加することでそれを行うことができます
override def dbIndexes=UniqueIndex(<name-of-the-field>)::super.dbIndexes
フィールドのコンマ区切りリストも提供できます
例えば -UniqueIndex(name,dob)
UniqueIndex(name,dob)