Class: ActiveRecord::ConnectionAdapters::MySQL::TableDefinition
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
ActiveRecord::ConnectionAdapters::TableDefinition
|
Defined in: | activerecord/lib/active_record/connection_adapters/mysql/schema_definitions.rb |
Class Method Summary
Instance Attribute Summary
- #charset readonly
- #collation readonly
::ActiveRecord::ConnectionAdapters::TableDefinition
- Inherited
Instance Method Summary
ColumnMethods
- Included
#blob, #longblob, #longtext, #mediumblob, #mediumtext, #tinyblob, #tinytext, #unsigned_bigint, #unsigned_decimal, #unsigned_float, #unsigned_integer |
::ActiveRecord::ConnectionAdapters::TableDefinition
- Inherited
#[] | Returns a |
#belongs_to | Alias for TableDefinition#references. |
#check_constraint, | |
#column | Instantiates a new column for the table. |
#columns | Returns an array of |
#index | Adds index options to the indexes hash, keyed by column name This is primarily used to track indexes that need to be created after the table. |
#numeric, | |
#references | Adds a reference. |
#remove_column | remove the column |
#timestamps | Appends |
::ActiveRecord::ConnectionAdapters::ColumnMethods
- Included
#column | Appends a column or columns of a specified type. |
#primary_key | Appends a primary key definition to the table definition. |
Constructor Details
.new(conn, name, charset: nil, collation: nil) ⇒ TableDefinition
Instance Attribute Details
#charset (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 63
attr_reader :charset, :collation
#collation (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 63
attr_reader :charset, :collation