I’m working with a local database on sqlite3 with Rails 3.2.3 and Active Admin. Two of my fields are of the type, time which I know is not a type in sqlite3 but we’re using postgres for production (not my choice to do not do them both in postgres). In the new/edit form, I put:
f.input :time_start, :as => :time_select
f.input :time_end, :as => :time_select
It shows as a field (as it does without the time_select) but when I enter numbers and try to save it, the field ends up blank on the next page. I pushed it to staging using heroku and postgres and it’s still ending up blank when I try to edit activities. How would I be able to create and save that time field on the local and staging databases?
So after renaming time_start and time_end, it worked. Then it stopped working. So I changed them to datetime sand now it works although the date fields are useless.