Class: DbSchema::Operations::DropForeignKey

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, fkey_name) ⇒ DropForeignKey

Returns a new instance of DropForeignKey.



158
159
160
161
# File 'lib/db_schema/operations.rb', line 158

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

Instance Attribute Details

#fkey_nameObject (readonly)

Returns the value of attribute fkey_name.



156
157
158
# File 'lib/db_schema/operations.rb', line 156

def fkey_name
  @fkey_name
end

#table_nameObject (readonly)

Returns the value of attribute table_name.



156
157
158
# File 'lib/db_schema/operations.rb', line 156

def table_name
  @table_name
end