Skip to content

Commit

Permalink
Address to "DEPRECATION WARNING: Uniqueness validator will no longer …
Browse files Browse the repository at this point in the history
…enforce case sensitive comparison in Rails 6.1"

Caused by rails#36210.
  • Loading branch information
kamipo committed Jun 27, 2019
1 parent 4024612 commit 7e08b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/schema/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
t.column :font_size, :integer, **default_zero
t.column :difficulty, :integer, **default_zero
t.column :cover, :string, default: "hard"
t.string :isbn
t.string :isbn, **case_sensitive_options
t.datetime :published_on
t.index [:author_id, :name], unique: true
t.index :isbn, where: "published_on IS NOT NULL", unique: true
Expand Down

0 comments on commit 7e08b6d

Please sign in to comment.