Add initial models and corresponding test files

This commit is contained in:
Martin Lensment 2014-06-16 17:21:01 +03:00
parent bca4470643
commit 542ea5101e
28 changed files with 548 additions and 8 deletions

7
app/models/domain.rb Normal file
View file

@ -0,0 +1,7 @@
class Domain < ActiveRecord::Base
belongs_to :registrar
belongs_to :ns_set
belongs_to :owner_contact, class_name: 'Contact'
belongs_to :technical_contact, class_name: 'Contact'
belongs_to :admin_contact, class_name: 'Contact'
end