Class: ActiveRecord::ConnectionAdapters::OracleEnhancedTableDefinition::ForeignKey
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecord::ConnectionAdapters::OracleEnhancedTableDefinition::ForeignKey
- Defined in:
- lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#options ⇒ Object
Returns the value of attribute options.
-
#to_table ⇒ Object
Returns the value of attribute to_table.
Instance Method Summary collapse
- #to_sql ⇒ Object (also: #to_s)
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base
56 57 58 |
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 56 def base @base end |
#options ⇒ Object
Returns the value of attribute options
56 57 58 |
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 56 def @options end |
#to_table ⇒ Object
Returns the value of attribute to_table
56 57 58 |
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 56 def to_table @to_table end |
Instance Method Details
#to_sql ⇒ Object Also known as: to_s
57 58 59 |
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 57 def to_sql base.foreign_key_definition(to_table, ) << base.table_definition_tablespace end |