apply method
Applies the migration and records its version.
Implementation
@override
Future<void> apply(Migration migration) async {
await _init();
await _db.transaction((ctx) async {
await ctx.insert(_table, {
'version': migration.version,
'created_at': DateTime.now().toIso8601String()
});
await ctx.execute(migration.statement);
});
}