class Liquigen::RenameColumn

Attributes

column_data_type[RW]
new_column_name[RW]
old_column_name[RW]
table_name[RW]

Public Class Methods

new(table, old_name, new_name, type) click to toggle source
# File lib/liquigen/rename_column.rb, line 10
def initialize(table, old_name, new_name, type)
  self.table_name = table&.underscore&.pluralize
  self.old_column_name = old_name
  self.new_column_name = new_name
  self.column_data_type = TypeMap.new(type).db_type || type
end