Replace deprecated use of `set_primary_key` to `primary_key`

`set_primary_key` is [deprecated as of Rails 3.2](http://guides.rubyonrails.org/3_2_release_notes.html#active-record-deprecations)