text: # ----------------------------------------------------------------------
  # ignore event rules
  # ----------------------------------------------------------------------
  # Copyright (C) 2007-2019 The NOC Project
  # See LICENSE for details
  # ----------------------------------------------------------------------
  
  # Third-party modules
  from django.db import models
  
  # NOC modules
  from noc.core.migration.base import BaseMigration
  
  
  class Migration(BaseMigration):
      def migrate(self):
          # Adding model 'IgnoreEvents'
          self.db.create_table(
              "fm_ignoreeventrules",
              (
                  ("id", models.AutoField(primary_key=True)),
                  ("name", models.CharField(unique=True, max_length=64)),
                  ("left_re", models.CharField(max_length=256)),
                  ("right_re", models.CharField(max_length=256)),
                  ("is_active", models.BooleanField(default=True, blank=True)),
                  ("description", models.TextField(null=True, blank=True)),
              ),
          )
  