Class: MigrationDefs::DropTableFunc
- Inherits:
-
AbstractMigrationClass
- Object
- AbstractMigrationClass
- MigrationDefs::DropTableFunc
- Defined in:
- lib/migration_defs.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #get_str ⇒ Object
-
#initialize(name) ⇒ DropTableFunc
constructor
A new instance of DropTableFunc.
- #parse_from_params(parse_params) ⇒ Object
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
#name ⇒ Object
Returns the value of attribute name.
334 335 336 |
# File 'lib/migration_defs.rb', line 334 def name @name end |
Instance Method Details
#get_str ⇒ Object
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 |