Class: Liquigen::DropTable
Instance Attribute Summary collapse
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(table) ⇒ DropTable
constructor
A new instance of DropTable.
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_name ⇒ Object
Returns the value of attribute table_name.
5 6 7 |
# File 'lib/liquigen/drop_table.rb', line 5 def table_name @table_name end |