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