about summary refs log tree commit diff stats
path: root/config/initializers
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 21:39:57 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 21:39:57 -0400
commit79d9cd3c5e3764db9d3506e1702042a7a7a4aea3 (patch)
tree3a83e1e9f4b307199b95de86a28f58eb0f40ae04 /config/initializers
parent9cf94eec5ae98f750f9babc0c37373df87e3981c (diff)
downloadthoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.tar.gz
thoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.tar.bz2
thoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.zip
Set up Capistrano
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/mysql_utf8mb4_fix.rb9
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 @@
1require 'active_record/connection_adapters/abstract_mysql_adapter'
2
3module ActiveRecord
4 module ConnectionAdapters
5 class AbstractMysqlAdapter
6 NATIVE_DATABASE_TYPES[:string] = { :name => "varchar", :limit => 191 }
7 end
8 end
9end