diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 11:49:49 -0500 |
commit | 56f5841d4b9c12296cdfcaeff174b2627d59afc8 (patch) | |
tree | 4f7da4ebbe5ee15a1594b26466ed78e2cf10de35 /config/initializers/mysql_utf8mb4_fix.rb | |
parent | c1b0443ba2aebdbd39291ddab0c189f3f4831320 (diff) | |
download | pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.gz pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.tar.bz2 pokeviewer-56f5841d4b9c12296cdfcaeff174b2627d59afc8.zip |
Migrate to full rails app
Diffstat (limited to 'config/initializers/mysql_utf8mb4_fix.rb')
-rw-r--r-- | config/initializers/mysql_utf8mb4_fix.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/initializers/mysql_utf8mb4_fix.rb b/config/initializers/mysql_utf8mb4_fix.rb new file mode 100644 index 0000000..8388027 --- /dev/null +++ b/config/initializers/mysql_utf8mb4_fix.rb | |||
@@ -0,0 +1,9 @@ | |||
1 | require 'active_record/connection_adapters/abstract_mysql_adapter' | ||
2 | |||
3 | module ActiveRecord | ||
4 | module ConnectionAdapters | ||
5 | class AbstractMysqlAdapter | ||
6 | NATIVE_DATABASE_TYPES[:string] = { :name => "varchar", :limit => 191 } | ||
7 | end | ||
8 | end | ||
9 | end | ||