新手问题 数据库字段太长报错问题

279959599 · January 22, 2019 · Last by fangxing204 replied at January 22, 2019 · 1556 hits

数据库的 id 过长,然后 where 查询报错如下 is out of range for ActiveModel::Type::Integer with limit 4

有遇到过这个问题的嘛。 数据库通过 migration 增加到 limit8,数据库的数据类型变成了 bigint。查询不报错的,但是查询出来的是空数据。

你是怎么查的?

You need to Sign in before reply, if you don't have an account, please Sign up first.