Displaying 1 result from an estimated 1 matches for "neighborhoods_saved_search".
Did you mean:
neighborhoods_saved_searches
2006 May 26
0
has_and_belongs_to_many with fk constraints?
..., I get this
error when I try and delete a model I''m using, named saved_search, which is
many-to-many with neighborhoods. Any ideas? Thanks for any help. :-)
-Eric
Code:
@saved_search.destroy
Error:
Mupdate or delete on "saved_searches" violates foreign key constraint
"neighborhoods_saved_searches_saved_searches_saved_search_id_fk" on
"neighborhoods_saved_searches" DKey (id)=(1) is still referenced from table
"neighborhoods_saved_searches". Fri_triggers.c L3302 Rri_ReportViolation:
DELETE FROM saved_searches WHERE id = 1
Models
------------
class SavedSearch <...