Class: MigrationDefs::DropTableFunc

Inherits:
AbstractMigrationClass show all
Defined in:
lib/migration_defs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DropTableFunc

Returns a new instance of DropTableFunc.



336
337
338
# File 'lib/migration_defs.rb', line 336

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



334
335
336
# File 'lib/migration_defs.rb', line 334

def name
  @name
end

Instance Method Details

#get_strObject



344
345
346
# File 'lib/migration_defs.rb', line 344

def get_str
  'drop_table :' + @name + "\n"
end

#parse_from_params(parse_params) ⇒ Object



340
341
342
# File 'lib/migration_defs.rb', line 340

def parse_from_params(parse_params)
  return ''
end