app/models/company.rb in e9_crm-0.1.8 vs app/models/company.rb in e9_crm-0.1.10

- old
+ new

@@ -1,5 +1,10 @@ # A company record, mainly an organizational tool for Contacts # class Company < ActiveRecord::Base include E9Rails::ActiveRecord::AttributeSearchable + + has_many :contacts, :dependent => :restrict + + validates :name, :presence => true, :uniqueness => { :allow_blank => true, :case_sensitive => false } + end