Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

206 B
Raw Blame
class ExchangeRate < ApplicationRecord
  include Provided

  validates :from_currency, :to_currency, :date, :rate, presence: true
  validates :date, uniqueness: { scope: %i[from_currency to_currency] }
end