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

5 lines
169 B
Ruby

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