Thank you so much for developing this gem, it will help me a lot. The problem is that I can't make it work. I'm currently working with ruby 2.3.3 and rails 5.0.0.
I have an Event model with start_time and end_time, that are postgresql's time attributes.
In the migration file:
class CreateEvents < ActiveRecord::Migration[5.0]
def change
create_table :events do |t|
...
t.time :start_time
t.time :end_time
t.timestamps
end
end
end
In event.rb:
class Event < ApplicationRecord
serialize :start_time, Tod::TimeOfDay
serialize :end_time, Tod::TimeOfDay
Hello,
Thank you so much for developing this gem, it will help me a lot. The problem is that I can't make it work. I'm currently working with ruby 2.3.3 and rails 5.0.0.
I have an Event model with start_time and end_time, that are postgresql's time attributes.
In the migration file:
In event.rb:
In application.rb:
Finally, when I try to create one I get:
So neither the start_time and end_time are considered on the SQL query and are not saved in the database without showing any errors.
Is there anything I'm doing wrong?