Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating the upgrade section for passenger and unicorn folks

  • Loading branch information...
commit c240a3fa4d0a0a2f46f343c2164c058f6eed916a 1 parent fe37696
@durran durran authored
Showing with 23 additions and 11 deletions.
  1. +23 −11 content/docs/upgrading.html.haml
View
34 content/docs/upgrading.html.haml
@@ -9,16 +9,17 @@ category: docs
%br
.title Upgrading to 2.0.0 beta 11 +
.text
- The <tt>Mongoid.use_object_ids</tt> configuration option has been removed
- and will need to be removed from your mongoid.yml or configuration block.
+ %p
+ The <tt>Mongoid.use_object_ids</tt> configuration option has been removed
+ and will need to be removed from your mongoid.yml or configuration block.
- If you had been using the default <tt>String</tt> representation of
- <tt>BSON::ObjectID</tt> as your ids, you will need to do one of the following
- options:
+ %p
+ If you had been using the default <tt>String</tt> representation of
+ <tt>BSON::ObjectID</tt> as your ids, you will need to do one of the following
+ options:
- %br
- %br
- 1. Tell each one of your models to use <tt>Strings</tt> as ids like so:
+ %p
+ a) Tell each one of your models to use <tt>Strings</tt> as ids like so:
%pre
%code.language-ruby
@@ -28,6 +29,17 @@ category: docs
identity :type => String
end
- 2. Migrate all your <tt>String</tt> ids over to <tt>ObjectIDs</tt> in your
- database. See <a href="http://gist.github.com/489098">This Gist</a> for an
- example script to do this. (Thanks Kyle Banker)
+ %p
+ b) Migrate all your <tt>String</tt> ids over to <tt>ObjectIDs</tt> in your
+ database. See <a href="http://gist.github.com/489098">This Gist</a> for an
+ example script to do this. (Thanks Kyle Banker)
+
+ %p
+ <tt>Passenger</tt> users who are using smart spawning must now remove
+ their initializers with the reconnect on fork code. Mongoid now handles
+ this for you.
+
+ %p
+ <tt>Unicorn</tt> users who set <tt>preload_app</tt> to <tt>true</tt>
+ must also delete their initializers with the reconnect on fork code.
+ Mongoid now handles this for you as well.
Please sign in to comment.
Something went wrong with that request. Please try again.