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



56
57
58
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 56

def base
  @base
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



56
57
58
# File 'lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb', line 56

def options
  @options
end

#to_tableObject

Returns the value of attribute to_table

Returns:

  • (Object)

    the current value of 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_sqlObject 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, options) << base.table_definition_tablespace
end