--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets the primary key for this model. You can use either a regular or a composite primary key.
- !ruby/struct:SM::Flow::P 
  body: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  class Tagging &lt; Sequel::Model\n    # composite key\n    set_primary_key :taggable_id, :tag_id\n  end\n\n  class Person &lt; Sequel::Model\n    # regular key\n    set_primary_key :person_id\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: You can set it to nil to not have a primary key, but that cause certain things not to work, see no_primary_key.
full_name: Sequel::Model::ClassMethods#set_primary_key
is_singleton: false
name: set_primary_key
params: (*key)
visibility: public
