I have a field in the PostgreSQL database in rails which has field type string. I want to convert it into text field. I am running rails migration to change the field type. Is there any care that I should take? will this cause loss of data?
class ChangeNotesToBeTextInSlots < ActiveRecord::Migration[5.1]
def change
change_column :slots, :notes, :text
end
end