diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 0efa111d12..8ebb27b682 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1513,8 +1513,8 @@ module ActiveRecord # * Developer#projects.size # * Developer#projects.find(id) # * Developer#projects.exists?(...) - # * Developer#projects.build (similar to Project.new("project_id" => id)) - # * Developer#projects.create (similar to c = Project.new("project_id" => id); c.save; c) + # * Developer#projects.build (similar to Project.new("developer_id" => id)) + # * Developer#projects.create (similar to c = Project.new("developer_id" => id); c.save; c) # The declaration may include an options hash to specialize the behavior of the association. # # === Options