Sha256: 3f02dd08e007ab4db81ef055d549f6b4b9d51cffa2acf1b7af55b161b8f2ba27
Contents?: true
Size: 578 Bytes
Versions: 6
Compression:
Stored size: 578 Bytes
Contents
require ::File.join(Earth.vendor_dir, 'geokit-rails', 'lib', 'geokit-rails') require 'earth/locality' class Airport < ActiveRecord::Base self.primary_key = "iata_code" belongs_to :country, :foreign_key => 'country_iso_3166_code', :primary_key => 'iso_3166_code' acts_as_mappable :default_units => :nms, :lat_column_name => :latitude, :lng_column_name => :longitude col :iata_code col :name col :city col :country_name col :country_iso_3166_code col :latitude, :type => :float col :longitude, :type => :float end
Version data entries
6 entries across 6 versions & 1 rubygems