diff --git a/config/initializers/abstract_mysql2_adapter.rb b/config/initializers/abstract_mysql2_adapter.rb new file mode 100644 index 0000000..f1b6251 --- /dev/null +++ b/config/initializers/abstract_mysql2_adapter.rb @@ -0,0 +1,6 @@ +require 'active_record/connection_adapters/mysql2_adapter' +NativeDbTypesOverride.configure({ + ActiveRecord::ConnectionAdapters::Mysql2Adapter => { + primary_key: "int(11) auto_increment PRIMARY KEY" + } +}) \ No newline at end of file