25 lines
635 B
Dart
25 lines
635 B
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
// **************************************************************************
|
||
|
// Generator: MigrationGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
import 'package:angel_migration/angel_migration.dart';
|
||
|
|
||
|
class TreeMigration extends Migration {
|
||
|
@override
|
||
|
up(Schema schema) {
|
||
|
schema.create('trees', (table) {
|
||
|
table.serial('id')..primaryKey();
|
||
|
table.integer('rings')..unique();
|
||
|
table.timeStamp('created_at');
|
||
|
table.timeStamp('updated_at');
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
down(Schema schema) {
|
||
|
schema.drop('trees');
|
||
|
}
|
||
|
}
|