diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-21 03:54:39 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-21 04:00:25 +0900 |
commit | 9120d087e8fcc381d4e781218bd2c134dfce6423 (patch) | |
tree | 19f955f828147ab5acc49dbf1ea5433af25fbb5d /activerecord/lib/active_record | |
parent | d99d4a58fa5c1344196ab1cb1b162348597f67bf (diff) | |
download | rails-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/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 4a6e915b66..172f0a5c84 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -211,13 +211,13 @@ module ActiveRecord # # ====== Add a backend specific option to the generated SQL (MySQL) # - # create_table(:suppliers, options: 'ENGINE=InnoDB DEFAULT CHARSET=utf8') + # create_table(:suppliers, options: 'ENGINE=InnoDB DEFAULT CHARSET=utf8mb4') # # generates: # # CREATE TABLE suppliers ( # id bigint auto_increment PRIMARY KEY - # ) ENGINE=InnoDB DEFAULT CHARSET=utf8 + # ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 # # ====== Rename the primary key column # |