I am working on a Ruby on Rails web application and I am interested in changing the type of two of the fields in my Project
model. When I created the Model I gave two of my fields (start_time
and end_time
) the type int and I would like to change it to a date/time type.
Since I am working with a team (and probably also because it is right to do it this way) I would like to change these field types using rake db:migrate
. How would i create a file to do this? What are the best (or only) date/time types existing in Ruby/Rails?