aboutsummaryrefslogtreecommitdiff
path: root/migrations/2016_07_18_144145_create_addresses_table.py
blob: 3b69a7013bc73f9c858241ab4170d8414111d075 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from orator.migrations import Migration


class CreateAddressesTable(Migration):

    def up(self):
        """
        Run the migrations.
        """
        with self.schema.create('addresses') as table:
            table.increments('id')
            table.string('email')
            table.string('domain')

    def down(self):
        """
        Revert the migrations.
        """
        self.schema.drop('addresses')