diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-04 16:47:43 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-04 17:14:15 +0900 |
commit | 465357aecfcfd5ae0b1f95b8a848e38ac868999d (patch) | |
tree | 9b3fe0c4d171a19bdaf47bf26903c24badb95b26 /guides | |
parent | fd3c6eadbbc1fbd4782138a28a87cb96df3ca450 (diff) | |
download | rails-465357aecfcfd5ae0b1f95b8a848e38ac868999d.tar.gz rails-465357aecfcfd5ae0b1f95b8a848e38ac868999d.tar.bz2 rails-465357aecfcfd5ae0b1f95b8a848e38ac868999d.zip |
Don't share `options` with a reference type column
Sharing `options` causes some unexpected behavior. If `limit: 2` is
specified, this means that 2 bytes integer for a reference id column and
2 chars string for a reference type column. Another example, if
`unsigned: true` is specified, this means that unsigned integer for a
reference id column, but a invalid option for a reference type column.
So `options` should not be shared with a reference type column.
Diffstat (limited to 'guides')
0 files changed, 0 insertions, 0 deletions