version property

int get version

The current version as specified by the migrations.

Implementation

int get version {
  return migrations.isEmpty ? 0 : migrations.last.toVersion;
}