class Branch < ApplicationRecord belongs_to :software has_many :versions validates :name, presence: true validates :name, uniqueness: { scope: :software } end