daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Jan 21st, 2018 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Player < ActiveRecord::Base
  2.  
  3.   belongs_to :team
  4.   has_many :votes
  5.  
  6.   validates_presence_of :team, :name, :number
  7.   validates_uniqueness_of :number, :scope => :team_id
  8.  
  9. end
RAW Paste Data
Top