Class: DbSchema::Operations::CreateForeignKey

Inherits:
Object
  • Object
show all
Defined in:
lib/db_schema/operations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_name, foreign_key) ⇒ CreateForeignKey

Returns a new instance of CreateForeignKey.



148
149
150
151
# File 'lib/db_schema/operations.rb', line 148

def initialize(table_name, foreign_key)
  @table_name  = table_name
  @foreign_key = foreign_key
end

Instance Attribute Details

#foreign_keyObject (readonly)

Returns the value of attribute foreign_key.



146
147
148
# File 'lib/db_schema/operations.rb', line 146

def foreign_key
  @foreign_key
end

#table_nameObject (readonly)

Returns the value of attribute table_name.



146
147
148
# File 'lib/db_schema/operations.rb', line 146

def table_name
  @table_name
end