#primary_key? ⇒ Boolean (readonly)
[ GitHub ]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 137
def primary_key? [:primary_key] end
123456789_123456789_123456789_123456789_123456789_
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::Struct
|
|
|
Instance Chain:
self,
::Struct
|
|
| 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.
use options instead
use options instead
use options instead
use options instead
use options instead
use options instead
use options instead
use options instead
use options instead
Abstract representation of a column definition.
Abstract representation of a column definition.
Abstract representation of a column definition.
Abstract representation of a column definition.
Abstract representation of a column definition.
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.
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 166
def collation = [:collation]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 167
def collation=(value) [:collation] = value end
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 171
def comment = [:comment]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 172
def comment=(value) [:comment] = value end
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 156
def default = [:default]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 157
def default=(value) [:default] = value end
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 176
def if_exists = [:if_exists]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 177
def if_exists=(value) [:if_exists] = value end
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 181
def if_not_exists = [:if_not_exists]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 182
def if_not_exists=(value) [:if_not_exists] = value end
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 141
def limit = [:limit]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 142
def limit=(value) [:limit] = value end
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.
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 161
def null = [:null]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 162
def null=(value) [:null] = value end
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.
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 146
def precision = [:precision]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 147
def precision=(value) [:precision] = value end
Boolean (readonly)
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 137
def primary_key? [:primary_key] end
use options instead
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 151
def scale = [:scale]
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 152
def scale=(value) [:scale] = value end
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.
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.