Class: ActiveRecord::ConnectionAdapters::OracleEnhancedTableDefinition::ForeignKey

Inherits:
Struct
  • Object
show all
Defined in:
lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseObject

Returns the value of attribute base

Returns:

  • (Object)

    the current value of base



26
27
28
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 26

def base
  @base
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



26
27
28
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 26

def options
  @options
end

#to_tableObject

Returns the value of attribute to_table

Returns:

  • (Object)

    the current value of to_table



26
27
28
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 26

def to_table
  @to_table
end

Instance Method Details

#to_sqlObject Also known as: to_s



27
28
29
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 27

def to_sql
  base.foreign_key_definition(to_table, options)
end