vereto-api/app/models/voucher.rb

6 lines
121 B
Ruby
Raw Normal View History

2019-09-27 19:03:44 +02:00
class Voucher < ApplicationRecord
validates_presence_of :voucher, :vouchee
validates_uniqueness_of :vouchee
end