Created
March 11, 2016 12:57
-
-
Save duderman/e193bc44fdd10e9c39f3 to your computer and use it in GitHub Desktop.
Fix primary_key NULL for rails 2 and mysql 5.7
This file contains 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::MysqlAdapter | |
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