mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #19982 from acapilleri/scope_uniquiness
[ci skip] Uniquiness with scope can have one or more arguments
This commit is contained in:
commit
5f844211be
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue