1
0
Fork 0
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:
Yves Senn 2015-05-03 13:00:37 +02:00
commit 5f844211be

View file

@ -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