module Logistics module Core class CurrencyRate < ApplicationRecord validates :rate_to_base_selling, :rate_date, presence: true belongs_to :currency def self.build(options = {}) CurrencyRate.new(options) end end end end