aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2017-07-30 18:36:15 +0530
committerGitHub <noreply@github.com>2017-07-30 18:36:15 +0530
commit0e94a1d3380b50f01b3217bbc5a5edc154ebfc4c (patch)
tree9f5ede6eeaaad711ffff642150a735e5de888dad /guides/source/active_record_validations.md
parentb5db73076914e7103466bd76bec785cbcfe88875 (diff)
parentb52849d42137b1b2c0b09a67babcbf858f501926 (diff)
downloadrails-0e94a1d3380b50f01b3217bbc5a5edc154ebfc4c.tar.gz
rails-0e94a1d3380b50f01b3217bbc5a5edc154ebfc4c.tar.bz2
rails-0e94a1d3380b50f01b3217bbc5a5edc154ebfc4c.zip
Merge pull request #30002 from y-yagi/change_http_postgresql_links_to_https
Change http postgresql.org links to https [ci skip]
Diffstat (limited to 'guides/source/active_record_validations.md')
-rw-r--r--guides/source/active_record_validations.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index 6eb5de78be..a086363cf1 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -638,7 +638,7 @@ class Holiday < ApplicationRecord
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.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.
+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](https://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