Class: ActiveRecord::ConnectionAdapters::ForeignKeyConstraint

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

Overview

Generic holder for foreign key constraint meta-data from the database schema.

Instance Attribute Summary collapse

Instance Attribute Details

#foreign_keyObject

Returns the value of attribute foreign_key

Returns:

  • (Object)

    the current value of foreign_key



6
7
8
# File 'lib/connection_adapters/abstract_adapter.rb', line 6

def foreign_key
  @foreign_key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/connection_adapters/abstract_adapter.rb', line 6

def name
  @name
end

#on_deleteObject

Returns the value of attribute on_delete

Returns:

  • (Object)

    the current value of on_delete



6
7
8
# File 'lib/connection_adapters/abstract_adapter.rb', line 6

def on_delete
  @on_delete
end

#on_updateObject

Returns the value of attribute on_update

Returns:

  • (Object)

    the current value of on_update



6
7
8
# File 'lib/connection_adapters/abstract_adapter.rb', line 6

def on_update
  @on_update
end

#reference_columnObject

Returns the value of attribute reference_column

Returns:

  • (Object)

    the current value of reference_column



6
7
8
# File 'lib/connection_adapters/abstract_adapter.rb', line 6

def reference_column
  @reference_column
end

#reference_tableObject

Returns the value of attribute reference_table

Returns:

  • (Object)

    the current value of reference_table



6
7
8
# File 'lib/connection_adapters/abstract_adapter.rb', line 6

def reference_table
  @reference_table
end

#tableObject

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



6
7
8
# File 'lib/connection_adapters/abstract_adapter.rb', line 6

def table
  @table
end