platform/angel_orm_generator/test/models/tree.migration.g.dart

26 lines
706 B
Dart
Raw Normal View History

2017-11-18 20:12:30 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
// **************************************************************************
// Generator: MigrationGenerator
// **************************************************************************
import 'package:angel_migration/angel_migration.dart';
2017-11-20 18:09:23 +00:00
import 'package:angel_orm/angel_orm.dart';
2017-11-18 20:12:30 +00:00
class TreeMigration extends Migration {
@override
up(Schema schema) {
schema.create('trees', (table) {
table.serial('id')..primaryKey();
2017-11-20 18:09:23 +00:00
table.declare('rings', new ColumnType('smallint'))..unique();
2017-11-18 20:12:30 +00:00
table.timeStamp('created_at');
table.timeStamp('updated_at');
});
}
@override
down(Schema schema) {
schema.drop('trees');
}
}