Sha256: 27cedd65c76e53af006fa90af736942bf824d308977b029401daff1aec8db231
Contents?: true
Size: 436 Bytes
Versions: 7
Compression:
Stored size: 436 Bytes
Contents
require 'earth/model' class NationalTransitDatabaseMode < ActiveRecord::Base extend Earth::Model TABLE_STRUCTURE = <<-EOS CREATE TABLE ntd_modes ( code CHARACTER VARYING(255) NOT NULL PRIMARY KEY, name CHARACTER VARYING(255), rail_mode BOOLEAN ); EOS self.primary_key = "code" self.table_name = :ntd_modes def self.rail_modes where(:rail_mode => true) end warn_unless_size 14 end
Version data entries
7 entries across 7 versions & 1 rubygems