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.



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

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#get_strObject



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

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

#parse_from_params(parse_params) ⇒ Object



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

def parse_from_params(parse_params)
  return ''
end