text: # encoding: utf-8
  import datetime
  from south.db import db
  from south.v2 import SchemaMigration
  from django.db import models
  
  class Migration(SchemaMigration):
      
      def forwards(self, orm):
          
          # Adding model 'IgnoredObject'
          db.create_table('djangoratings_ignoredobject', (
              ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
              ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
              ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
              ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounts.User'])),
          ))
          db.send_create_signal('djangoratings', ['IgnoredObject'])
  
          # Adding field 'SimilarUser.exclude'
          db.add_column('djangoratings_similaruser', 'exclude', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
      
      
      def backwards(self, orm):
          
          # Deleting model 'IgnoredObject'
          db.delete_table('djangoratings_ignoredobject')
  
          # Deleting field 'SimilarUser.exclude'
          db.delete_column('djangoratings_similaruser', 'exclude')
      
      
      models = {
          'accounts.user': {
              'Meta': {'object_name': 'User'},
              'address': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
              'city': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
              'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '254'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'is_admin': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
              'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
              'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
          },        
          'contenttypes.contenttype': {
              'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
              'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
          },
          'djangoratings.ignoredobject': {
              'Meta': {'unique_together': "(('content_type', 'object_id'),)", 'object_name': 'IgnoredObject'},
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['accounts.User']"})
          },
          'djangoratings.score': {
              'Meta': {'unique_together': "(('content_type', 'object_id', 'key'),)", 'object_name': 'Score'},
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'key': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
              'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
              'score': ('django.db.models.fields.IntegerField', [], {}),
              'votes': ('django.db.models.fields.PositiveIntegerField', [], {})
          },
          'djangoratings.similaruser': {
              'Meta': {'unique_together': "(('from_user', 'to_user'),)", 'object_name': 'SimilarUser'},
              'agrees': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'disagrees': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
              'exclude': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
              'from_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'similar_users'", 'to': "orm['accounts.User']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'to_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'similar_users_from'", 'to': "orm['accounts.User']"})
          },
          'djangoratings.vote': {
              'Meta': {'unique_together': "(('content_type', 'object_id', 'key', 'user', 'ip_address'),)", 'object_name': 'Vote'},
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['contenttypes.ContentType']"}),
              'date_added': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'date_changed': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'ip_address': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),
              'key': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
              'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
              'score': ('django.db.models.fields.IntegerField', [], {}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'votes'", 'null': 'True', 'to': "orm['accounts.User']"})
          }
      }
      
      complete_apps = ['djangoratings']
  