Commit 3f6bd4cc authored by Gladys Forte's avatar Gladys Forte

delete 006 migrations

parent 7e202dd4
# Generated by Django 2.2 on 2020-01-22 11:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('entities', '0005_auto_20200115_1950'),
]
operations = [
migrations.CreateModel(
name='Branch',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('enviroment', models.CharField(max_length=255)),
('branch_name', models.CharField(max_length=255)),
('repo_type', models.CharField(max_length=50)),
('repository', models.CharField(max_length=255, unique=True)),
('created', models.DateTimeField(auto_now_add=True)),
],
options={
'db_table': 'branches',
},
),
]
......@@ -1228,25 +1228,3 @@ class AssetGroup(models.Model):
self.code = code
self.created = datetime.now()
self.save()
# branches info
class Branch(models.Model):
enviroment = models.CharField(
max_length=255)
branch_name = models.CharField(
max_length=255)
repo_type = models.CharField(
max_length=50)
repository = models.CharField(
unique=True,
max_length=255)
created = models.DateTimeField(
auto_now_add=True)
class Meta:
db_table = 'branches'
def __str__(self):
return f'{self.branch_name}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment