mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
15 lines
251 B
Ruby
15 lines
251 B
Ruby
class Account < ApplicationRecord
|
|
extend ToCsv
|
|
include Versions
|
|
|
|
belongs_to :registrar, required: true
|
|
has_many :account_activities
|
|
|
|
validates :account_type, presence: true
|
|
|
|
CASH = 'cash'
|
|
|
|
def activities
|
|
account_activities
|
|
end
|
|
end
|