diff options
Diffstat (limited to 'doc/development/sql.md')
-rw-r--r-- | doc/development/sql.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/sql.md b/doc/development/sql.md index 101ccc239e7..d7a5923efce 100644 --- a/doc/development/sql.md +++ b/doc/development/sql.md @@ -540,7 +540,7 @@ The code snippet above will not work well if there is a model-level uniqueness v To work around this, we have two options: -- Remove the unqueness validation from the `ActiveRecord` model. +- Remove the uniqueness validation from the `ActiveRecord` model. - Use the [`on` keyword](https://guides.rubyonrails.org/active_record_validations.html#on) and implement context-specific validation. ### Alternative 2: Check existence and rescue |