kaiho/app/models/software.rb

4 lines
112 B
Ruby

class Software < ApplicationRecord
has_many :versions
validates :name, presence: true, uniqueness: true
end