• R
    Avoid overwriting the methods of `AttributeMethods::PrimaryKey` · 9b8c7796
    Ryuta Kamizono 提交于
    Currently the methods of `AttributeMethods::PrimaryKey` are overwritten
    by `define_attribute_methods`. It will be broken if a table that
    customized primary key has non primary key id column.
    It should not be overwritten if a table has any primary key.
    
    Fixes #29350.
    9b8c7796
primary_keys_test.rb 13.5 KB