Browse Source

Add comment for ActiveRecord#skip_time_zone_conversion_for_attributes

rails6
Jérémy Lecour 1 year ago
parent
commit
29d9a02a06
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/models/check.rb

+ 2
- 0
app/models/check.rb View File

@ -44,6 +44,8 @@ class Check < ApplicationRecord
enum kind: [:domain, :ssl]
enum mode: [:auto, :manual]
# Those dates are written as UTC,
# but not converted back when read from the database
self.skip_time_zone_conversion_for_attributes = [
:domain_created_at,
:domain_updated_at,


Loading…
Cancel
Save