Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. # this is due to break change in Mysql 5.7.x, and latest Rails4.2.x already have this patched.
  2. # remove this file when upgrade to Rails 4.2.x
  3. class ActiveRecord::ConnectionAdapters::Mysql2Adapter
  4. NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement