Displaying 1 result from an estimated 1 matches for "neighborhood_id".
Did you mean:
neighbourhood_id
2006 May 26
0
has_and_belongs_to_many with fk constraints?
...Neighborhoods < ActiveRecord::Base
has_and_belongs_to_many :saved_searches
end
Join table:
neighborhoods_saved_searches
----------------------------
id INTEGER NOT NULL PRIMARY KEY
saved_search_id INTEGER NOT NULL foreign key table:
saved_searches field: id
neighborhood_id INTEGER NOT NULL foreign key table:
neighborhoods field: id
The other tables, saved_search, and listings, are normal and have integer id
fields as required.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rail...