can't dup NilClass - Error
Why are you marking the Child as unloadable? Is there a good reason for this? if not, I'd remove.
Rails API says "Unloadable constants are removed each time dependencies are cleared."
Does the error happen when you change it to:
class Child < Parent
has_many :parents, :foreign_key => "child"
end
And, I may be overstepping, but this seems more standard:
class Child
belongs_to :parent
end
class Parent
has_many :children, :dependent=>:destroy
end