diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2018-09-12 09:49:44 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2018-09-13 12:05:25 +0000 |
commit | be021a809c29b79a501ae7e0146c08a39d963e48 (patch) | |
tree | 0090ac38fbbbd7864e442a045ae0a6505040330e /railties | |
parent | 7db3a6e89a05855d6f55864e15ee69986708c1dc (diff) | |
download | rails-be021a809c29b79a501ae7e0146c08a39d963e48.tar.gz rails-be021a809c29b79a501ae7e0146c08a39d963e48.tar.bz2 rails-be021a809c29b79a501ae7e0146c08a39d963e48.zip |
Validate if `utf8mb4` character set and longer index key prefix is supported
Once #33608 merged If users create a new database using MySQL 5.1.x, it will fail to create databases
since MySQL 5.1 does not know `utf8mb4` character set.
This pull request removes `encoding: utf8mb4` from `mysql.yml.tt`
to let create_database method handles default character set by MySQL server version.
`supports_longer_index_key_prefix?` method will need to validate if MySQL 5.5 and 5.6 server configured
correctly to support longer index key prefix, but not yet.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt b/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt index dda979555a..82608e7a0f 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt @@ -11,7 +11,6 @@ # default: &default adapter: mysql2 - encoding: utf8mb4 pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> username: root password: |