diff options
author | Paul Annesley <paul@annesley.cc> | 2011-02-06 16:04:29 -0800 |
---|---|---|
committer | Paul Annesley <paul@annesley.cc> | 2011-02-06 16:04:29 -0800 |
commit | 58dccf305a63e5a77695206453a669bb3fffa17f (patch) | |
tree | a774a1be068eb7f176aebf8b11b591dd108a03a6 | |
parent | cc2b2719d87a7c3a81fe810211ab39755aec1a8f (diff) | |
download | rails-58dccf305a63e5a77695206453a669bb3fffa17f.tar.gz rails-58dccf305a63e5a77695206453a669bb3fffa17f.tar.bz2 rails-58dccf305a63e5a77695206453a669bb3fffa17f.zip |
ActiveRecord :default_timezone is :utc in Rails, as set by active_record/railtie.rb
-rw-r--r-- | railties/guides/source/configuring.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index eee18f1131..62b846e871 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -218,7 +218,7 @@ h4. Configuring Active Record * +config.active_record.pluralize_table_names+ specifies whether Rails will look for singular or plural table names in the database. If set to +true+ (the default), then the Customer class will use the +customers+ table. If set to +false+, then the Customers class will use the +customer+ table. -* +config.active_record.default_timezone+ determines whether to use +Time.local+ (if set to +:local+) or +Time.utc+ (if set to +:utc+) when pulling dates and times from the database. The default is +:local+. +* +config.active_record.default_timezone+ determines whether to use +Time.local+ (if set to +:local+) or +Time.utc+ (if set to +:utc+) when pulling dates and times from the database. The default is +:utc+ for Rails, although ActiveRecord defaults to +:local+ when used outside of Rails. * +config.active_record.schema_format+ controls the format for dumping the database schema to a file. The options are +:ruby+ (the default) for a database-independent version that depends on migrations, or +:sql+ for a set of (potentially database-dependent) SQL statements. |