mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
11 lines
254 B
Ruby
11 lines
254 B
Ruby
class WalletTransaction < ActiveRecord::Base
|
|
include AmountConcern
|
|
|
|
belongs_to :user
|
|
belongs_to :wallet
|
|
belongs_to :reservation
|
|
belongs_to :transactable, polymorphic: true
|
|
|
|
validates_inclusion_of :transaction_type, in: %w( credit debit )
|
|
end
|