Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

190 B
Raw Blame
class Security::Price < ApplicationRecord
  belongs_to :security

  validates :date, :price, :currency, presence: true
  validates :date, uniqueness: { scope: %i[security_id currency] }
end