aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-06-28 00:26:22 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-06-28 00:28:47 +0900
commit7e08b6d2b2b67edbd0314b3a15c9ed5633f1c753 (patch)
tree4c7951aa2713e41fb5332e730addf11c588dec9a /activerecord/test/schema
parent40246125b99ed1f7d7ea869980523e50a0ec9a96 (diff)
downloadrails-7e08b6d2b2b67edbd0314b3a15c9ed5633f1c753.tar.gz
rails-7e08b6d2b2b67edbd0314b3a15c9ed5633f1c753.tar.bz2
rails-7e08b6d2b2b67edbd0314b3a15c9ed5633f1c753.zip
Address to "DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1"
Caused by #36210.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index eed18a7b89..b6c0ae0de2 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -115,7 +115,7 @@ ActiveRecord::Schema.define do
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