1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #27278 from kamipo/should_be_sync_primary_key_definition

Should be sync the `primary_key` definition with actually created
This commit is contained in:
Sean Griffin 2016-12-08 13:15:13 -05:00 committed by GitHub
commit 17b09f4fca

View file

@ -39,7 +39,7 @@ module ActiveRecord
self.emulate_booleans = true
NATIVE_DATABASE_TYPES = {
primary_key: "BIGINT(8) UNSIGNED auto_increment PRIMARY KEY",
primary_key: "bigint auto_increment PRIMARY KEY",
string: { name: "varchar", limit: 255 },
text: { name: "text", limit: 65535 },
integer: { name: "int", limit: 4 },