class Migration::EmotionTagImporter < Migration::Importer
  def initialize(emo_tag)
    super(emo_tag, Tag.new)
  end
  
  def migrate
    
    if tag = Tag.where(noun_id: @entity_to_migrate.noun_id, noun_type: 'Emotion', 
      entry_id: @entity_to_migrate.entry_id).first
      
      puts "Duplicate tag!! #{@entity_to_migrate.inspect}"
      tag
    else
      super
    end
  end
  
  def self.migrate_all
    migrate_all_from_collection(Legacy::Emotion.all)
  end
end

class Migration::EmotionTagImporter < Migration::Importer
  def initialize(emo_tag)
    super(emo_tag, Tag.new)
  end
  
  def migrate
    
    if tag = Tag.where(noun_id: @entity_to_migrate.noun_id, noun_type: 'Emotion', 
      entry_id: @entity_to_migrate.entry_id).first
      
      puts "Duplicate tag!! #{@entity_to_migrate.inspect}"
      tag
    else
      super
    end
  end
  
  def self.migrate_all
    migrate_all_from_collection(Legacy::Emotion.where(:setting > 0).all)
  end
end

Change the migration to only migrate emotions with positive intensity.
Change the migration to only migrate emotions with positive intensity.
