Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Branch < ActiveRecord::Base
- belongs_to :tree
- has_many :leaves
- validates_presence_of :name, :message => "A branch without a name? WTF?"
- validates_presence_of :tree_id, :message => "was not there dude."
- end
Add Comment
Please, Sign In to add comment