Guest User

Untitled

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