Browse files

docs, link MySQL manual for multi column indexes. [ci ckip].

Closes #9131.
  • Loading branch information...
1 parent 702e0e1 commit c7abc516f8fd7ccc4ae2bb528404ffb8a46ba4ba @senny senny committed Feb 4, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 guides/source/
@@ -575,7 +575,9 @@ This helper validates that the attribute's value is unique right before the
object gets saved. It does not create a uniqueness constraint in the database,
so it may happen that two different database connections create two records
with the same value for a column that you intend to be unique. To avoid that,
-you must create a unique index in your database.
+you must create a unique index on both columns in your database. See
+[the MySQL manual](
+for more details about multi column indexes.
class Account < ActiveRecord::Base

0 comments on commit c7abc51

Please sign in to comment.