Sha256: ab50e8058142ed80b5fdddb9b50d0506453f262e4918ce23ff2dcf67c88c7094

Contents?: true

Size: 242 Bytes

Versions: 10

Compression:

Stored size: 242 Bytes

Contents

class NationalTransitDatabaseMode < ActiveRecord::Base
  self.primary_key = "code"
  self.table_name = :ntd_modes
  
  def self.rail_modes
    where(:rail_mode => true)
  end
  
  col :code
  col :name
  col :rail_mode, :type => :boolean
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.19 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.18 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.17 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.16 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.15 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.14 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.13 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.12 lib/earth/rail/national_transit_database_mode.rb
earth-0.11.11 lib/earth/rail/national_transit_database_mode.rb