ensl.org/config/initializers/abstract_mysql2_adapter.rb

6 lines
195 B
Ruby
Raw Normal View History

2018-11-23 00:38:34 +00:00
require 'active_record/connection_adapters/mysql2_adapter'
class ActiveRecord::ConnectionAdapters::Mysql2Adapter
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
end