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.
335 336 337 |
# File 'lib/migration_defs.rb', line 335 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
333 334 335 |
# File 'lib/migration_defs.rb', line 333 def name @name end |
Instance Method Details
#get_str ⇒ Object
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 |