Require account registrar to be present

#475
This commit is contained in:
Artur Beljajev 2017-05-07 00:26:32 +03:00
parent ae64c7cbed
commit 3162c76bbf
2 changed files with 13 additions and 2 deletions

View file

@ -1,6 +1,7 @@
class Account < ActiveRecord::Base
include Versions
belongs_to :registrar
belongs_to :registrar, required: true
has_many :account_activities
validates :account_type, presence: true