Class: Liquigen::DropTable

Inherits:
Change
  • Object
show all
Defined in:
lib/liquigen/drop_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table) ⇒ DropTable

Returns a new instance of DropTable.



7
8
9
# File 'lib/liquigen/drop_table.rb', line 7

def initialize(table)
  self.table_name = table.underscore.pluralize
end

Instance Attribute Details

#table_nameObject

Returns the value of attribute table_name.



5
6
7
# File 'lib/liquigen/drop_table.rb', line 5

def table_name
  @table_name
end