Displaying 1 result from an estimated 1 matches for "rri_reportviol".
2006 May 26
0
has_and_belongs_to_many with fk constraints?
...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 < ActiveRecord::Base
has_and_belongs_to_many :neighborhoods
end
class Neighborhoods < ActiveRecord::Base
has_and_belongs_to_many :saved_searches
end
Join table:
neighborhoods_saved_sea...