Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
configured mongoid to use activesupport time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
masukomi committed Aug 9, 2012
1 parent 03ff14c commit ff3ad20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/mongoid.yml
@@ -1,10 +1,14 @@
development:
host: localhost
database: mobtvse_development
use_utc: false
use_activesupport_time_zone: true

test:
host: localhost
database: mobtvse_test
use_utc: false
use_activesupport_time_zone: true

# set these environment variables on your prod server
production:
Expand All @@ -13,6 +17,8 @@ production:
username: <%= ENV['MONGOID_USERNAME'] %>
password: <%= ENV['MONGOID_PASSWORD'] %>
database: <%= ENV['MONGOID_DATABASE'] %>
use_utc: false
use_activesupport_time_zone: true
# slaves:
# - host: slave1.local
# port: 27018
Expand Down

0 comments on commit ff3ad20

Please sign in to comment.