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