1
0
Fork 0
dokkan-data-rails/app/models/type.rb

7 lines
188 B
Ruby

class Type < ActiveRecord::Base
has_paper_trail
validates :name, presence: true,
uniqueness: { case_sensitive: false }
validates :description, presence: true
end