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