Class: Liquigen::RenameTable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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_nameObject

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