File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 182
182
183
183
* Avoid validating a unique field if it has not changed and is backed by a unique index.
184
184
185
- Previously, when saving a record, ActiveRecord will perform an extra query to check for the uniqueness of
186
- each attribute having a `uniqueness` validation, even if that attribute hasn' t changed.
187
- If the database has the corresponding unique index, then this validation can never fail for persisted records,
188
- and we could safely skip it.
185
+ Previously, when saving a record, Active Record will perform an extra query to check for the
186
+ uniqueness of each attribute having a `uniqueness` validation, even if that attribute hasn' t changed.
187
+ If the database has the corresponding unique index, then this validation can never fail for persisted
188
+ records, and we could safely skip it.
189
189
190
190
* fatkodima*
191
191
You can’t perform that action at this time.
0 commit comments