HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/activerecord-6.1.4.1/ri/ActiveRecord/Timestamp/cdesc-Timestamp.ri
U:RDoc::NormalModule[iI"Timestamp:ETI"ActiveRecord::Timestamp;T0o:RDoc::Markup::Document:@parts[o;;[S:RDoc::Markup::Heading:
leveli:	textI"Active Record \Timestamp;To:RDoc::Markup::BlankLineo:RDoc::Markup::Paragraph;[I"PActive Record automatically timestamps create and update operations if the ;TI">table has fields named <tt>created_at/created_on</tt> or ;TI"$<tt>updated_at/updated_on</tt>.;T@o;
;[I"/Timestamping can be turned off by setting:;T@o:RDoc::Markup::Verbatim;[I"4config.active_record.record_timestamps = false
;T:@format0o;
;[I"TTimestamps are in UTC by default but you can use the local timezone by setting:;T@o;;[I"4config.active_record.default_timezone = :local
;T;0S;	;
i;I"Time Zone aware attributes;T@o;
;[I"MActive Record keeps all the <tt>datetime</tt> and <tt>time</tt> columns ;TI"Ptimezone aware. By default, these values are stored in the database as UTC ;TI"Xand converted back to the current <tt>Time.zone</tt> when pulled from the database.;T@o;
;[I":This feature can be turned off completely by setting:;T@o;;[I"=config.active_record.time_zone_aware_attributes = false
;T;0o;
;[I"RYou can also specify that only <tt>datetime</tt> columns should be time-zone ;TI"7aware (while <tt>time</tt> should not) by setting:;T@o;;[I"<ActiveRecord::Base.time_zone_aware_types = [:datetime]
;T;0o;
;[I"ZYou can also add database specific timezone aware types. For example, for PostgreSQL:;T@o;;[I"HActiveRecord::Base.time_zone_aware_types += [:tsrange, :tstzrange]
;T;0o;
;[I"RFinally, you can indicate specific attributes of a model for which time zone ;TI"<conversion should not applied, for instance by setting:;T@o;;[I"&class Topic < ActiveRecord::Base
;TI"E  self.skip_time_zone_conversion_for_attributes = [:written_on]
;TI"end;T;0:
@fileI"#lib/active_record/timestamp.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I"
class;T[[:public[[:protected[[:private[[I"
instance;T[[;[[;[[;[[I"_create_record;TI"#lib/active_record/timestamp.rb;T[I"_update_record;T@][I"&all_timestamp_attributes_in_model;T@][I"clear_timestamp_attributes;T@][I"create_or_update;T@][I"&current_time_from_proper_timezone;T@][I"!max_updated_column_timestamp;T@][I"should_record_timestamps?;T@][I"-timestamp_attributes_for_create_in_model;T@][I"-timestamp_attributes_for_update_in_model;T@][[I"ActiveSupport::Concern;To;;[;@D;0@][U:RDoc::Context::Section[i0o;;[;0;0[@DI"ActiveRecord;TcRDoc::NormalModule