Class: Foreigner::ConnectionAdapters::TableDefinition::ForeignKey
- Inherits:
-
Struct
- Object
- Struct
- Foreigner::ConnectionAdapters::TableDefinition::ForeignKey
- Defined in:
- lib/foreigner/connection_adapters/sqlite3_adapter.rb
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
37 38 39 |
# File 'lib/foreigner/connection_adapters/sqlite3_adapter.rb', line 37 def base @base end |
#options ⇒ Object
Returns the value of attribute options
37 38 39 |
# File 'lib/foreigner/connection_adapters/sqlite3_adapter.rb', line 37 def @options end |
#to_table ⇒ Object
Returns the value of attribute to_table
37 38 39 |
# File 'lib/foreigner/connection_adapters/sqlite3_adapter.rb', line 37 def to_table @to_table end |
Instance Method Details
#to_sql ⇒ Object Also known as: to_s
39 40 41 |
# File 'lib/foreigner/connection_adapters/sqlite3_adapter.rb', line 39 def to_sql base.foreign_key_definition(to_table, ) end |