Advertisement
Guest User

mongoid.yml

a guest
Jul 30th, 2013
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. development:
  2. # Configure available database sessions. (required)
  3. sessions:
  4. # Defines the default session. (required)
  5. default:
  6. # Defines the name of the default database that Mongoid can connect to.
  7. # (required).
  8. database: scammerific_development
  9. # Provides the hosts the default session can connect to. Must be an array
  10. # of host:port pairs. (required)
  11. hosts:
  12. - localhost:27017
  13. options:
  14. # Change whether the session persists in safe mode by default.
  15. # (default: false)
  16. # safe: false
  17.  
  18. # Change the default consistency model to :eventual or :strong.
  19. # :eventual will send reads to secondaries, :strong sends everything
  20. # to master. (default: :eventual)
  21. # consistency: :eventual
  22.  
  23. # How many times Moped should attempt to retry an operation after
  24. # failure. (default: 30)
  25. # max_retries: 30
  26.  
  27. # The time in seconds that Moped should wait before retrying an
  28. # operation on failure. (default: 1)
  29. # retry_interval: 1
  30. # Configure Mongoid specific options. (optional)
  31. options:
  32. # Enable the identity map, needed for eager loading. (default: false)
  33. # identity_map_enabled: false
  34.  
  35. # Includes the root model name in json serialization. (default: false)
  36. # include_root_in_json: false
  37.  
  38. # Include the _type field in serializaion. (default: false)
  39. # include_type_for_serialization: false
  40.  
  41. # Preload all models in development, needed when models use
  42. # inheritance. (default: false)
  43. # preload_models: false
  44.  
  45. # Protect id and type from mass assignment. (default: true)
  46. # protect_sensitive_fields: true
  47.  
  48. # Raise an error when performing a #find and the document is not found.
  49. # (default: true)
  50. # raise_not_found_error: true
  51.  
  52. # Raise an error when defining a scope with the same name as an
  53. # existing method. (default: false)
  54. # scope_overwrite_exception: false
  55.  
  56. # Skip the database version check, used when connecting to a db without
  57. # admin access. (default: false)
  58. # skip_version_check: false
  59.  
  60. # User Active Support's time zone in conversions. (default: true)
  61. # use_activesupport_time_zone: true
  62.  
  63. # Ensure all times are UTC in the app side. (default: false)
  64. # use_utc: false
  65. test:
  66. sessions:
  67. default:
  68. database: scammerific_test
  69. hosts:
  70. - localhost:27017
  71. options:
  72. consistency: :strong
  73. # In the test environment we lower the retries and retry interval to
  74. # low amounts for fast failures.
  75. max_retries: 1
  76. retry_interval: 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement