Permalink
Browse files

Set the :parent_id field_type to BSON::ObjectId in the Mongoid adapter

  • Loading branch information...
1 parent 0a6f8b5 commit 1a889aca3528ac55575ff03494ca23e1b114cbeb @jeffkreeftmeijer committed Jan 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/navvy/job/mongoid.rb
View
2 lib/navvy/job/mongoid.rb
@@ -11,7 +11,7 @@ class Job
field :priority, :type => Integer, :default => 0
field :return, :type => String
field :exception, :type => String
- field :parent_id, :type => String
+ field :parent_id, :type => BSON::ObjectId
field :created_at, :type => Time
field :run_at, :type => Time
field :started_at, :type => Time

0 comments on commit 1a889ac

Please sign in to comment.