class EasyEntityImportAttributesAssignment < ActiveRecord::Base

  belongs_to :easy_entity_import

  validates :easy_entity_import_id, :entity_attribute, :presence => true
  validates :source_attribute, :presence => true, :if => Proc.new{|e| !e.is_custom? }
  validates :value, :presence => true, :if => Proc.new{|e| e.is_custom? }

  attr_protected :id

end
