diff options
Diffstat (limited to 'examples/tutorial02/polls/models.rs')
-rw-r--r-- | examples/tutorial02/polls/models.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/tutorial02/polls/models.rs b/examples/tutorial02/polls/models.rs index 5ed52c5..fb8be8f 100644 --- a/examples/tutorial02/polls/models.rs +++ b/examples/tutorial02/polls/models.rs @@ -1,4 +1,4 @@ -use tosin::db::models::{Model, Id}; +use tosin::db::models::{Model, Id, gather}; #[derive(Model)] pub struct Question { @@ -19,3 +19,5 @@ pub struct Choice { #[model(default = 0)] votes: usize, } + +gather!(); |