From 07c53b7469b3bb78d10a1a26e0c1e60fe178fae9 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Thu, 22 Nov 2018 19:38:34 -0500 Subject: [PATCH] Fix mysql2 schema issue --- config/initializers/abstract_mysql2_adapter.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 config/initializers/abstract_mysql2_adapter.rb diff --git a/config/initializers/abstract_mysql2_adapter.rb b/config/initializers/abstract_mysql2_adapter.rb new file mode 100644 index 0000000..5b99a6a --- /dev/null +++ b/config/initializers/abstract_mysql2_adapter.rb @@ -0,0 +1,5 @@ +require 'active_record/connection_adapters/mysql2_adapter' + +class ActiveRecord::ConnectionAdapters::Mysql2Adapter + NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY" +end \ No newline at end of file