Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
add waffle for iarc upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Nov 25, 2015
1 parent ffcdd16 commit f4eaa7c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions mkt/site/migrations/0003_auto_20151123_1219.py
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
import datetime

from django.db import migrations


def add_iarc_waffle(apps, schema_editor):
# We can't import the Switch model directly as it may be a newer
# version than this migration expects. We use the historical version.
Switch = apps.get_model('waffle', 'Switch')
Switch.objects.create(created=datetime.datetime.now(), name='iarc-upgrade')


class Migration(migrations.Migration):

dependencies = [
('site', '0002_auto_20151109_1326'),
]

operations = [
migrations.RunPython(add_iarc_waffle)
]

0 comments on commit f4eaa7c

Please sign in to comment.