Skip to main content

create_table_up

Function create_table_up 

Source
pub fn create_table_up(table_name: &str, fields: &[Field]) -> String
Expand description

Builds the up() body for a create_table migration — a create_table call carrying the declared columns, followed by any add_index calls for :index fields.