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



53
54
55
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 53

def base
  @base
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



53
54
55
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 53

def options
  @options
end

#to_tableObject

Returns the value of attribute to_table

Returns:

  • (Object)

    the current value of to_table



53
54
55
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 53

def to_table
  @to_table
end

Instance Method Details

#to_sqlObject Also known as: to_s



54
55
56
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 54

def to_sql
  base.foreign_key_definition(to_table, options)
end