Class: DbSchema::Operations::CreateForeignKey
- Inherits:
-
Object
- Object
- DbSchema::Operations::CreateForeignKey
- Defined in:
- lib/db_schema/operations.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.
172 173 174 175 |
# File 'lib/db_schema/operations.rb', line 172 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.
170 171 172 |
# File 'lib/db_schema/operations.rb', line 170 def foreign_key @foreign_key end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
170 171 172 |
# File 'lib/db_schema/operations.rb', line 170 def table_name @table_name end |