http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/447-2-1-0-has_many-associations-broken#ticket-447-4 — this is the problem.
http://rails.lighthouseapp.com/attachments/28557/patch.diff — and this is a patch.
My git branch is 447_bugfix.