Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# frozen_string_literal: true
class CurrencyWallet < ApplicationRecord
self.table_name = 'currencies_wallets'
belongs_to :currency
belongs_to :wallet
validates :currency_id, uniqueness: { scope: :wallet_id }
end
# == Schema Information
# Schema version: 20201125134745
#
# Table name: currencies_wallets
#
# currency_id :string(255)
# wallet_id :integer
#
# Indexes
#
# index_currencies_wallets_on_currency_id (currency_id)
# index_currencies_wallets_on_currency_id_and_wallet_id (currency_id,wallet_id) UNIQUE
# index_currencies_wallets_on_wallet_id (wallet_id)
#