Using Rails 4, I have a column (page_id
), and I need to force it to remove all data that's currently in the database column (it's in dev, so I don't care about anything that database right now).
My migration looks like this:
change_column :sections, :page_id, :uuid
(I'm migrating away from integers for Pages)
How do I use change_column
and delete all the data that's currently in my database? Or do I need to do a remove_column
and then an add_column
that's set up correctly?