Skip to content

Commit

Permalink
need development section for glue update (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt--williams authored Dec 4, 2024
1 parent 55d7f54 commit 2877963
Showing 1 changed file with 11 additions and 58 deletions.
69 changes: 11 additions & 58 deletions config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,73 +23,26 @@ production:
skip_version_check: true

development:
# Configure available database sessions. (required)
sessions:
# Defines the default session. (required)
default:
# Defines the name of the default database that Mongoid can connect to.
# (required).
database: gluedb_development
# Provides the hosts the default session can connect to. Must be an array
# of host:port pairs. (required)
database: <%= ENV['EDIDB_DB_NAME'] %>_dev
<% if ENV['EDIDB_DB_AUTH'] %>
username: <%= ENV['EDIDB_DB_USERNAME'] %>
password: <%= ENV['EDIDB_DB_PASSWORD'] %>
<% end %>

hosts:
- localhost:27017
- <%= ENV['EDIDB_DB_HOST'] || 'localhost' %>:<%= ENV['EDIDB_DB_PORT'] || '27017' %>
options:
# Change whether the session persists in safe mode by default.
# (default: false)
# safe: false

# Change the default consistency model to :eventual or :strong.
# :eventual will send reads to secondaries, :strong sends everything
# to master. (default: :eventual)
# consistency: :eventual

# How many times Moped should attempt to retry an operation after
# failure. (default: 30)
# max_retries: 30

# The time in seconds that Moped should wait before retrying an
# operation on failure. (default: 1)
# retry_interval: 1
# Configure Mongoid specific options. (optional)
options:
# Configuration for whether or not to allow access to fields that do
# not have a field definition on the model. (default: true)
# allow_dynamic_fields: true

# Enable the identity map, needed for eager loading. (default: false)
# identity_map_enabled: false

# Includes the root model name in json serialization. (default: false)
# include_root_in_json: false

# Include the _type field in serializaion. (default: false)
# include_type_for_serialization: false

# Preload all models in development, needed when models use
# inheritance. (default: false)
# preload_models: false

# Protect id and type from mass assignment. (default: true)
# protect_sensitive_fields: true

# Raise an error when performing a #find and the document is not found.
# (default: true)
# raise_not_found_error: true

# Raise an error when defining a scope with the same name as an
# existing method. (default: false)
# scope_overwrite_exception: false
<% if ENV['EDIDB_DB_AUTH'] %>
replica_set: <%= ENV['EDIDB_DB_REPLICA_SET_NAME'] %>
<% end %>

# Skip the database version check, used when connecting to a db without
# admin access. (default: false)
# skip_version_check: false
skip_version_check: true

# User Active Support's time zone in conversions. (default: true)
# use_activesupport_time_zone: true

# Ensure all times are UTC in the app side. (default: false)
# use_utc: false
test:
sessions:
default:
Expand Down

0 comments on commit 2877963

Please sign in to comment.