diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-13 03:46:25 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-13 03:46:25 -0300 |
commit | 65f189da2d3a91ffc73673190fbc39012dbbcfc2 (patch) | |
tree | 25ed5722518b9f4ed86e3e104b2a0fc2f16e301c /guides | |
parent | f3ff72bc7728f1df3dc25d88f4c2c8afa998751c (diff) | |
parent | 08c0ef777f29048ca3e22e2b86c53bd3790c74fc (diff) | |
download | rails-65f189da2d3a91ffc73673190fbc39012dbbcfc2.tar.gz rails-65f189da2d3a91ffc73673190fbc39012dbbcfc2.tar.bz2 rails-65f189da2d3a91ffc73673190fbc39012dbbcfc2.zip |
Merge pull request #21568 from amitsuroliya/mysql_version_update
Updated MySQL documentation link to MySQL latest version 5.7 everywhe…
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index b99113ed3e..15f65a6501 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -636,7 +636,7 @@ class Holiday < ActiveRecord::Base message: "should happen once per year" } end ``` -Should you wish to create a database constraint to prevent possible violations of a uniqueness validation using the `:scope` option, 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 multiple column indexes or [the PostgreSQL manual](http://www.postgresql.org/docs/current/static/ddl-constraints.html) for examples of unique constraints that refer to a group of columns. +Should you wish to create a database constraint to prevent possible violations of a uniqueness validation using the `:scope` option, you must create a unique index on both columns in your database. See [the MySQL manual](http://dev.mysql.com/doc/refman/5.7/en/multiple-column-indexes.html) for more details about multiple column indexes or [the PostgreSQL manual](http://www.postgresql.org/docs/current/static/ddl-constraints.html) for examples of unique constraints that refer to a group of columns. There is also a `:case_sensitive` option that you can use to define whether the uniqueness constraint will be case sensitive or not. This option defaults to |