Created
January 12, 2016 08:28
-
-
Save skorth/7e4ae5c6b3da7607a953 to your computer and use it in GitHub Desktop.
Remove `DEFAULT NULL` for primary key column to support MySQL 5.7.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActiveRecord::ConnectionAdapters::Mysql2Adapter | |
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on rails/rails#13247 - just add it as initializers/abstract_mysql_adapter.rb