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.



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_keyObject (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_nameObject (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