Guest User

Untitled

a guest
May 27th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. class Branch < ActiveRecord::Base
  2. belongs_to :tree
  3. has_many :leaves
  4.  
  5. validates_presence_of :name, :message => "A branch without a name? WTF?"
  6. validates_presence_of :tree_id, :message => "was not there dude."
  7. end
Add Comment
Please, Sign In to add comment