module Ecom module Model class Currency < ApplicationRecord validates :code, :name, presence: true, uniqueness: true end end end