timeStamp method

MigrationColumn timeStamp(
  1. String name, {
  2. bool timezone = false,
})
inherited

Implementation

MigrationColumn timeStamp(String name, {bool timezone = false}) {
  if (!timezone) {
    return declare(name, ColumnType.timeStamp);
  }
  return declare(name, ColumnType.timeStampWithTimeZone);
}