提交 6be63744 编写于 作者: R Ryuta Kamizono

Should be sync the `primary_key` definition with actually created

Actually the `primary_key` definition is not used but the inconsistency
is confusing. Actual definition is `bigint auto_increment PRIMARY KEY`
so `UNSIGNED` and `(8)` is unnecessary.

See also #21607.
上级 9b6f3127
......@@ -39,7 +39,7 @@ def arel_visitor # :nodoc:
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 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册