Sha256: 4c0a19c5ebac495c1093806c168818d52c299c66e79a7bf7f2891ed0ed1b0e0d
Contents?: true
Size: 664 Bytes
Versions: 4
Compression:
Stored size: 664 Bytes
Contents
require 'earth/model' require 'earth/air/flight_segment' class Airline < ActiveRecord::Base extend Earth::Model TABLE_STRUCTURE = <<-EOS CREATE TABLE airlines ( name CHARACTER VARYING(255) NOT NULL PRIMARY KEY, secondary_name CHARACTER VARYING(255), bts_code CHARACTER VARYING(255), iata_code CHARACTER VARYING(255), icao_code CHARACTER VARYING(255) ); EOS self.primary_key = "name" has_many :flight_segments, :primary_key => :bts_code, :foreign_key => :airline_bts_code warn_unless_size 1519 # this is overridden in data1, which imports extra airlines from proprietary data end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
earth-1.2.1 | lib/earth/air/airline.rb |
earth-1.1.2 | lib/earth/air/airline.rb |
earth-1.1.1 | lib/earth/air/airline.rb |
earth-1.1.0 | lib/earth/air/airline.rb |