class Typero::TimezoneType
Public Instance Methods
db_schema()
click to toggle source
# File lib/typero/type/types/timezone_type.rb, line 10 def db_schema [:string, { length: 50 }] end
set()
click to toggle source
# File lib/typero/type/types/timezone_type.rb, line 4 def set TZInfo::Timezone.get(value) rescue TZInfo::InvalidTimezoneIdentifier error_for :invalid_time_zone end