I want to find a date in a column that is within this range:
date: 01-01-2018..08-01-2018
I tried this migration:
class AddColumnDataInHomeTask < ActiveRecord::Migration[5.1]
def change
add_column :home_tasks, :date, :string
end
end
No error is raised, but it does not work. There is a problem with the type:
:string
date
as adate
?