Sha256: a06385b5f9767317016775b519cb328a8ddaee7851d1344e0706b2af4de94f4c
Contents?: true
Size: 322 Bytes
Versions: 6
Compression:
Stored size: 322 Bytes
Contents
class Division < ActiveRecord::Base if Rails.version < '3.2' set_primary_key :custom_id else self.primary_key = :custom_id end validates_numericality_of(:custom_league_id, :only_integer => true) validates_presence_of(:name) belongs_to :league, :foreign_key => 'custom_league_id' has_many :teams end
Version data entries
6 entries across 6 versions & 3 rubygems