class Contractor < ActiveRecord::Base
  has_many :contracts, inverse_of: :contractor
end

class Contractor < ActiveRecord::Base
  has_many :contracts, inverse_of: :contractor

  validates :name, :abn, presence: true
  validates :abn, uniqueness: true
end

Add basic validation to Contractor
Add basic validation to Contractor
