Class: Liquigen::RenameTable
- Defined in:
- lib/liquigen/rename_table.rb
Instance Attribute Summary collapse
-
#new_table_name ⇒ Object
Returns the value of attribute new_table_name.
-
#old_table_name ⇒ Object
Returns the value of attribute old_table_name.
Instance Method Summary collapse
-
#initialize(old_name, new_name) ⇒ RenameTable
constructor
A new instance of RenameTable.
Constructor Details
#initialize(old_name, new_name) ⇒ RenameTable
Returns a new instance of RenameTable.
8 9 10 11 |
# File 'lib/liquigen/rename_table.rb', line 8 def initialize(old_name, new_name) self.old_table_name = old_name&.underscore&.pluralize self.new_table_name = new_name&.underscore&.pluralize end |
Instance Attribute Details
#new_table_name ⇒ Object
Returns the value of attribute new_table_name.
6 7 8 |
# File 'lib/liquigen/rename_table.rb', line 6 def new_table_name @new_table_name end |
#old_table_name ⇒ Object
Returns the value of attribute old_table_name.
5 6 7 |
# File 'lib/liquigen/rename_table.rb', line 5 def old_table_name @old_table_name end |