mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
14 lines
237 B
Ruby
14 lines
237 B
Ruby
class Account < ActiveRecord::Base
|
|
include Versions
|
|
|
|
belongs_to :registrar, required: true
|
|
has_many :account_activities
|
|
|
|
validates :account_type, presence: true
|
|
|
|
CASH = 'cash'
|
|
|
|
def activities
|
|
account_activities
|
|
end
|
|
end
|