class CityPair < Sequel::Model(:'city pair') set_primary_key [:'kid - user', :'kid - mult', :'kid - comm', :'kid - date', :'kid - time'] unrestrict_primary_key def after_initialize set_kids if new? end def set_kids self.kid_date = rand(65535) self.kid_time = rand(65535) self.kid_comm = rand(255) self.kid_mult = rand(255) self.kid_user = rand(36**4).to_s(36) end o_to_n :city_costs, :class=>:CityCost, :prefix=>'owner' #### BEGIN GENERATED SECTION #### column_alias :additional_distance, :'additional distance' column_alias :additional_time, :'additional time' column_alias :aircraft_type_id, :'aircraft type id' column_alias :allocation_1, :'allocation 1' column_alias :allocation_2, :'allocation 2' column_alias :cklist_kid_comm, :'cklist kid - comm' column_alias :cklist_kid_date, :'cklist kid - date' column_alias :cklist_kid_mult, :'cklist kid - mult' column_alias :cklist_kid_time, :'cklist kid - time' column_alias :cklist_kid_user, :'cklist kid - user' column_alias :dh_fare, :'dh fare' column_alias :distance, :'distance' column_alias :expiration_date, :'expiration date' column_alias :fare, :'fare' column_alias :flight_time, :'flight time' column_alias :from_ap_id, :'from ap id' column_alias :from_ap_prefix, :'from ap prefix' column_alias :from_area_id, :'from area id' column_alias :internal01, :'internal01' column_alias :internal02, :'internal02' column_alias :kid_comm, :'kid - comm' column_alias :kid_date, :'kid - date' column_alias :kid_mult, :'kid - mult' column_alias :kid_time, :'kid - time' column_alias :kid_user, :'kid - user' column_alias :outside_eec_percent, :'outside eec percent' column_alias :to_ap_id, :'to ap id' column_alias :to_ap_prefix, :'to ap prefix' column_alias :to_area_id, :'to area id' column_alias :internal0, :'internal0' column_alias :key0, :'key0' column_alias :key1, :'key1' column_alias :key2, :'key2' column_alias :key3, :'key3' column_alias :key4, :'key4' column_alias :key5, :'key5' #### END GENERATED SECTION #### end