Wrapping table schema creation.
(name: T)
| 65 | |
| 66 | /// Wrapping table schema creation. |
| 67 | pub fn table_auto<T: IntoIden + 'static>(name: T) -> TableCreateStatement { |
| 68 | timestamps(Table::create().table(name).if_not_exists().take()) |
| 69 | } |
| 70 | |
| 71 | /// Create a primary key column with auto-increment feature. |
| 72 | pub fn pk_auto<T: IntoIden>(name: T) -> ColumnDef { |