• P
    Handle other pk types in PostgreSQL gracefully. · 0e00c6b2
    Patrick Robertson 提交于
    In #10410 it was noted that you can no longer create PK's with the
    type of bigserial in PostgreSQL in 4.0.0.rc1. This is mostly
    because the newer adapter is checking for column type with the
    id column instead of just letting it pass through like it did
    before.
    
    Side effects:
    You may just create a PK column of a type that you really don't
    want to be your PK. As far as I can tell this was allowed in 3.2.X
    and perhaps an exception should be raised if you try and do
    something extremely dumb.
    0e00c6b2
primary_keys_test.rb 7.1 KB