aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-09-21 03:54:39 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-09-21 04:00:25 +0900
commit9120d087e8fcc381d4e781218bd2c134dfce6423 (patch)
tree19f955f828147ab5acc49dbf1ea5433af25fbb5d /activerecord/test/schema
parentd99d4a58fa5c1344196ab1cb1b162348597f67bf (diff)
downloadrails-9120d087e8fcc381d4e781218bd2c134dfce6423.tar.gz
rails-9120d087e8fcc381d4e781218bd2c134dfce6423.tar.bz2
rails-9120d087e8fcc381d4e781218bd2c134dfce6423.zip
Use utf8mb4 in all tests and examples
Since #33875, Rails dropped supporting MySQL 5.1 which does not support utf8mb4. We no longer need to use legacy utf8 (utf8mb3) conservatively.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/mysql2_specific_schema.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/schema/mysql2_specific_schema.rb b/activerecord/test/schema/mysql2_specific_schema.rb
index c384297658..499280cb0c 100644
--- a/activerecord/test/schema/mysql2_specific_schema.rb
+++ b/activerecord/test/schema/mysql2_specific_schema.rb
@@ -46,8 +46,8 @@ ActiveRecord::Schema.define do
end
create_table :collation_tests, id: false, force: true do |t|
- t.string :string_cs_column, limit: 1, collation: "utf8_bin"
- t.string :string_ci_column, limit: 1, collation: "utf8_general_ci"
+ t.string :string_cs_column, limit: 1, collation: "utf8mb4_bin"
+ t.string :string_ci_column, limit: 1, collation: "utf8mb4_general_ci"
t.binary :binary_column, limit: 1
end