Sha256: 5fb97ddee0fc902a37cce149e11c3654e54ff312565107a27b4d8a2fb2a604b2

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

require 'earth/model'

class RailClass < ActiveRecord::Base
  extend Earth::Model

  TABLE_STRUCTURE = <<-EOS

CREATE TABLE rail_classes
  (
     name CHARACTER VARYING(255) NOT NULL PRIMARY KEY
  );

EOS

  self.primary_key = "name"
  
  warn_unless_size 6
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/rail/rail_class.rb
earth-1.1.2 lib/earth/rail/rail_class.rb
earth-1.1.1 lib/earth/rail/rail_class.rb
earth-1.1.0 lib/earth/rail/rail_class.rb
earth-1.0.3 lib/earth/rail/rail_class.rb
earth-1.0.2 lib/earth/rail/rail_class.rb
earth-1.0.1 lib/earth/rail/rail_class.rb