@@ -0,0 +1,575 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0Afrom django.db import migrations%0Afrom waffle.models import Switch%0A%0A%0Adef add_prereg_switch(*args, **kwargs):%0A    switch = Switch(name='osf_preregistration', active=False)%0A    switch.save()%0A%0A%0Adef remove_prereg_switch(*args, **kwargs):%0A    Switch.objects.get(name='osf_preregistration').delete()%0A%0A%0Aclass Migration(migrations.Migration):%0A    dependencies = %5B%0A        ('osf', '0142_remove_waffle_analytics_flags'),%0A    %5D%0A    operations = %5B%0A        migrations.RunPython(add_prereg_switch, remove_prereg_switch)%0A    %5D%0A

add migration for osf_preregistration switch