diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-05-03 13:00:37 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-05-03 13:00:37 +0200 |
commit | 5f844211bebc7a974dc3ff6d67901515369c1840 (patch) | |
tree | 0ddf53794c79ded8db78acd439d715065deb66af | |
parent | 347052a50e54f88d973a7acbd3607ec2cacee921 (diff) | |
parent | 5c3be16ed285b66e09b648fff4d5bef754a0895c (diff) | |
download | rails-5f844211bebc7a974dc3ff6d67901515369c1840.tar.gz rails-5f844211bebc7a974dc3ff6d67901515369c1840.tar.bz2 rails-5f844211bebc7a974dc3ff6d67901515369c1840.zip |
Merge pull request #19982 from acapilleri/scope_uniquiness
[ci skip] Uniquiness with scope can have one or more arguments
-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 d251c5c0b1..343b761e93 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -617,7 +617,7 @@ end The validation happens by performing an SQL query into the model's table, searching for an existing record with the same value in that attribute. -There is a `:scope` option that you can use to specify other attributes that +There is a `:scope` option that you can use to specify one or more attributes that are used to limit the uniqueness check: ```ruby |