Sha256: c13a54390fead397d9280755684621d665f5e4b384c54436958d7a52b8ed3fc1

Contents?: true

Size: 183 Bytes

Versions: 2

Compression:

Stored size: 183 Bytes

Contents

class Division < ActiveRecord::Base
  validates_numericality_of(:league_id, :only_integer => true)
  validates_presence_of(:name)

  belongs_to(:league)
  has_many(:teams)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb-admin-0.8.5 spec/models/activerecord/division.rb
merb-admin-0.8.3 spec/models/activerecord/division.rb