class Branch < ApplicationRecord
  belongs_to :repository
  belongs_to :user

  validates :name, presence: true, length: { in: 1..33 }
  validates :branch_goal, presence: true, length: { maximum: 3333 }
  validates :branch_method, presence: true, length: { maximum: 3333 }
  validates :branch_resources, presence: true, length: { maximum: 3333 }
end
