Skip to content

Commit

Permalink
Merge pull request #669 from kbrock/fix_unique_warning_test
Browse files Browse the repository at this point in the history
fix uniqueness warning in mysql 6.0 tests
  • Loading branch information
kbrock authored Jul 13, 2023
2 parents c08b07d + 08539c5 commit 5c63748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/concerns/hooks_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_update_descendants_with_changed_parent_value
model.class_eval do
before_save :update_name_path
# this example will only work if the name field is unique across all levels
validates :name, :uniqueness => true
validates :name, :uniqueness => {case_sensitive: false}

def update_name_path
self.name_path = [parent&.name_path, name].compact.join('/')
Expand Down

0 comments on commit 5c63748

Please sign in to comment.