This project is archived and is in readonly mode.
belongs_to relationship creation should fail if foreign key does not exist.
-
Matt Scilipoti
This test identifies the issue but, it may be better to use:
item_a = ItemA.create!("name" => "Apple") assert_raise <insert appropriate error here> do item_b = item_a.create_item_b("name" => "(fan)Boy") end -
Santiago Pastorino
- State changed from new to open
- Tag changed from rails 3.0.rc, rails 3.rc2 to rails 30rc, rails 3rc2
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale