mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 21:31:28 +00:00
Fix mysql2 schema issue
This commit is contained in:
parent
8ccef9e224
commit
07c53b7469
1 changed files with 5 additions and 0 deletions
5
config/initializers/abstract_mysql2_adapter.rb
Normal file
5
config/initializers/abstract_mysql2_adapter.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue