diff options
Diffstat (limited to 'docs/changeset.rst')
| -rw-r--r-- | docs/changeset.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/changeset.rst b/docs/changeset.rst index 8a2b620..2612e7c 100644 --- a/docs/changeset.rst +++ b/docs/changeset.rst @@ -39,8 +39,8 @@ Given a standard SQLAlchemy table:: :meth:`Create a column <ChangesetColumn.create>`:: - col = Column('col1', String) - col.create(table) + col = Column('col1', String, default='foobar') + col.create(table, populate_default=True) # Column is added to table based on its name assert col is table.c.col1 |
