class method self.primary_key=

Ruby on Rails 2.2.3

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.primary_key=(value = nil, &block)

No documentation comment.

Parameters

value opt = nil
block block

Alias for

ActiveRecord::Base.set_primary_key

Defined in activerecord/lib/active_record/base.rb · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Base

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close