Sha256: 914bd93aa3bcd367b6b727ef528dfeb493aa348df05a2c0228f00a6fe56df79b
Contents?: true
Size: 1.53 KB
Versions: 1
Compression:
Stored size: 1.53 KB
Contents
################################################################################ # # This TripLeg is overriding the TripLeg model in fossil. # It is pulling data from the mysql in memory database which is a copy of the fos # trip leg table but with an added id column, and single ids for all foreign keys, # so the associations are all rewritten to use the single primary key. # The other methods are special methods for datamart trip_leg summary table # class TripLeg one_to_many :crew_legs, :class=>:CrewLeg, :key=>:trip_leg_id, :primary_key=>:id one_to_many :flight_log_expenses, :class=>:FlightLogExpense, :key=>:trip_leg_id, :primary_key=>:id many_to_one :trip, :class=>:Trip, :key=>:trips_id many_to_one :arrival_fbo, :class=>:AirportFbo, :key=>:fbo_id many_to_one :departure_fbo, :class=>:AirportFbo, :key=>:fueler_id many_to_one :trip_requester, :class=>:Passenger, :key=>:requester_id many_to_one :leg_requestor, :class=>:Passenger, :key=>:leg_req_id many_to_one :departure_catering_comment, :class=>:Comment, :key=>:departure_catering_comment_id many_to_one :arrival_catering_comment, :class=>:Comment, :key=>:arrival_catering_comment_id many_to_one :departure_transport_comment, :class=>:Comment, :key=>:departure_transport_comment_id many_to_one :arrival_transport_comment, :class=>:Comment, :key=>:arrival_transport_comment_id many_to_one :departure_general_comment, :class=>:Comment, :key=>:departure_general_comment_id many_to_one :arrival_general_comment, :class=>:Comment, :key=>:arrival_general_comment_id end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fossil-0.5.6 | lib/dbr_models/trip_leg.rb |