新手问题 Rails 4 如何构建 unsigned integer 字段?

imwildcat · October 18, 2014 · 1558 hits

看到 t.column :field, 'integer unsigned' 但是在 Rails4 里似乎没作用啊。

比如 topics_count group_id 这样的字段肯定是用非负数吧? 另外,为什么 Rails 默认主键不是 unsigned 的呢?

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