defaultRaw method

ColumnDefinition defaultRaw(
  1. String sql
)

Specifies a raw SQL default value for the column.

Example: defaultRaw('CURRENT_TIMESTAMP')

Implementation

ColumnDefinition defaultRaw(String sql) {
  _defaultValue = sql;
  _isDefaultRaw = true;
  return this;
}