Class: ActiveRecord::ConnectionAdapters::SQLite3::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/sqlite3/schema_definitions.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
-
#belongs_to(*args, **options)
Alias for #references.
- #references(*args, **options) (also: #belongs_to)
::ActiveRecord::ConnectionAdapters::TableDefinition
- Inherited
#[] | Returns a |
#belongs_to | Alias for TableDefinition#references. |
#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. |
#references | Adds a reference. |
#remove_column | remove the column |
#timestamps | Appends |
::ActiveRecord::ConnectionAdapters::ColumnMethods
- Included
#numeric, | |
#primary_key | Appends a primary key definition to the table definition. |
Constructor Details
This class inherits a constructor from ActiveRecord::ConnectionAdapters::TableDefinition
Instance Method Details
#belongs_to(*args, **options)
Alias for #references.
# File 'activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb', line 10
alias :belongs_to :references
#references(*args, **options) Also known as: #belongs_to
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rb', line 7
def references(*args, ** ) super(*args, type: :integer, ** ) end