search for: destination_id

Displaying 3 results from an estimated 3 matches for "destination_id".

2010 Feb 08
5
Why are double sided polymorphic relationships lacking in Rails?
http://stackoverflow.com/questions/2224994/why-are-double-sided-polymorphic-relationships-lacking-in-rails -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2006 Jul 15
3
How bad is it to have 7 joins in my find_by_sql?
...ship_level FROM activities LEFT OUTER JOIN accounts ON activities.account_id = accounts.id LEFT OUTER JOIN users on accounts.user_id = users.id LEFT OUTER JOIN airports AS origins ON activities.origin_id = origins.id LEFT OUTER JOIN airports AS destinations ON activities.destination_id = destinations.id LEFT OUTER JOIN airlines ON activities.airline_id = airlines.id LEFT OUTER JOIN programs ON accounts.program_id = programs.id LEFT OUTER JOIN membership_levels ON accounts.membership_level_id = membership_levels.id WHERE accounts.user_id = #{@session[...
2012 Oct 13
4
Database design, working but looking for better ways
...le to look at the diagram in the link below, hopefully. https://cacoo.com/diagrams/biDSyxh8yzk2kIeg ("belongs_to" is omitted since it''s obvious) Basically, the application can list the destinations from a choice of the departure. Not mention that the departure_id (integer) and destination_id (integer) should not appear but the "city.name" must appear for the users. Each "Plan" will find both Departure and Destination implicitly and the only corresponding City.name ''s must show up on the screen. In order to save the database space, I detach the city name (...