change data type migration rails code example Example: rails migration change type of column change_column :table_name, :column_name, :date