from orator.migrations import Migration class CreatePartsTable(Migration): def up(self): """ Run the migrations. """ with self.schema.create('parts') as table: table.string('name') table.primary('name') def down(self): """ Revert the migrations. """ self.schema.drop('parts')