In which initialization file should I add the desired line of code? I receive the following failure warning.
DEPRECATION WARNING: Time columns will be displayed in Rails 5.1. This still causes String be Time.zone , as if they were in Time.zone , and Time to convert to Time.zone .
To maintain the previous behavior, you must add the following to your initializer:
config.active_record.time_zone_aware_types = [:datetime]
To disable this warning, add the following:
config.active_record.time_zone_aware_types = [:datetime, :time]
I am new to rails, I just want to follow best practices. Thanks!
source share