Test for primary key by using primary_key method

The `column.primary` method seems to have been deprecated.