change column type in existing table + rails + migrate data code example Example: rails migration change type of column change_column :table_name, :column_name, :date