Class: DbSchema::Changes::CreateForeignKey
- Inherits:
-
Object
- Object
- DbSchema::Changes::CreateForeignKey
- Defined in:
- lib/db_schema/changes.rb
Instance Attribute Summary collapse
-
#foreign_key ⇒ Object
readonly
Returns the value of attribute foreign_key.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(table_name, foreign_key) ⇒ CreateForeignKey
constructor
A new instance of CreateForeignKey.
Constructor Details
#initialize(table_name, foreign_key) ⇒ CreateForeignKey
Returns a new instance of CreateForeignKey.
372 373 374 375 |
# File 'lib/db_schema/changes.rb', line 372 def initialize(table_name, foreign_key) @table_name = table_name @foreign_key = foreign_key end |
Instance Attribute Details
#foreign_key ⇒ Object (readonly)
Returns the value of attribute foreign_key.
370 371 372 |
# File 'lib/db_schema/changes.rb', line 370 def foreign_key @foreign_key end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
370 371 372 |
# File 'lib/db_schema/changes.rb', line 370 def table_name @table_name end |