Add model Unique setting.

1.	In model, use validates_unique.
2.	In database, use add_index.