aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-02-04 13:37:11 +0100
committerZachary Scott <zachary@zacharyscott.net>2014-02-09 12:28:50 +0100
commit4e4a92e78a29d2508702336a440cb0d14cbf1f39 (patch)
tree8558b6defe63a285feeb2416780bb5f5214ab54c /guides
parent17b0edde5782c424dbae6020e09a51831e8de7f9 (diff)
downloadrails-4e4a92e78a29d2508702336a440cb0d14cbf1f39.tar.gz
rails-4e4a92e78a29d2508702336a440cb0d14cbf1f39.tar.bz2
rails-4e4a92e78a29d2508702336a440cb0d14cbf1f39.zip
docs, link MySQL manual for multi column indexes. [ci ckip].
Closes #9131.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_validations.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index efa826e8df..b0bd16791d 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -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](http://dev.mysql.com/doc/refman/5.6/en/multiple-column-indexes.html)
+for more details about multi column indexes.
```ruby
class Account < ActiveRecord::Base