#primary_key? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 92
def primary_key? [:primary_key] end
123456789_123456789_123456789_123456789_123456789_
Relationships & Source Files | |
Inherits: |
Struct
|
Defined in: | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb |
Abstract representation of a column definition. Instances of this type are typically created by methods in TableDefinition
, and added to the columns
attribute of said TableDefinition
object, in order to be used for generating a number of table creation or table changing SQL statements.
Boolean
(readonly)
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 92
def primary_key? [:primary_key] end