Class: ActiveRecord::ConnectionAdapters::ForeignKeyDefinition
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecord::ConnectionAdapters::ForeignKeyDefinition
- Defined in:
- lib/active_record/connection_adapters/abstract/schema_definitions.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#from_table ⇒ Object
Returns the value of attribute from_table.
-
#options ⇒ Object
Returns the value of attribute options.
-
#to_table ⇒ Object
Returns the value of attribute to_table.
Instance Method Summary collapse
- #column ⇒ Object
- #custom_primary_key? ⇒ Boolean
- #name ⇒ Object
- #on_delete ⇒ Object
- #on_update ⇒ Object
- #primary_key ⇒ Object
Instance Attribute Details
#from_table ⇒ Object
Returns the value of attribute from_table
28 29 30 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 28 def from_table @from_table end |
#options ⇒ Object
Returns the value of attribute options
28 29 30 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 28 def @options end |
#to_table ⇒ Object
Returns the value of attribute to_table
28 29 30 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 28 def to_table @to_table end |
Instance Method Details
#column ⇒ Object
33 34 35 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 33 def column [:column] end |
#custom_primary_key? ⇒ Boolean
49 50 51 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 49 def custom_primary_key? [:primary_key] != default_primary_key end |
#name ⇒ Object
29 30 31 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 29 def name [:name] end |
#on_delete ⇒ Object
41 42 43 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 41 def on_delete [:on_delete] end |
#on_update ⇒ Object
45 46 47 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 45 def on_update [:on_update] end |
#primary_key ⇒ Object
37 38 39 |
# File 'lib/active_record/connection_adapters/abstract/schema_definitions.rb', line 37 def primary_key [:primary_key] || default_primary_key end |