mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
parent
3afd542b1a
commit
ae64c7cbed
3 changed files with 16 additions and 2 deletions
|
@ -6,6 +6,7 @@ module Billing
|
|||
self.auto_html5_validation = false
|
||||
|
||||
belongs_to :zone, class_name: 'DNS::Zone', required: true
|
||||
has_many :account_activities
|
||||
|
||||
validates :price, :valid_from, :operation_category, :duration, presence: true
|
||||
validates :operation_category, inclusion: { in: Proc.new { |price| price.class.operation_categories } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue