update column rails code example
Example 1: edit column table ruby on rails
change_column :table, :column_name, :type, :whatever_here
Example 2: change column rails example
def change
change_column(:table_name, :column_name, :new_type)
end
change_column :table, :column_name, :type, :whatever_here
def change
change_column(:table_name, :column_name, :new_type)
end