aboutsummaryrefslogtreecommitdiff
path: root/examples/tutorial02/polls
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorial02/polls')
-rw-r--r--examples/tutorial02/polls/migrations/m_0001_auto.rs4
-rw-r--r--examples/tutorial02/polls/migrations/mod.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/tutorial02/polls/migrations/m_0001_auto.rs b/examples/tutorial02/polls/migrations/m_0001_auto.rs
index 7fa7de0..2eef04a 100644
--- a/examples/tutorial02/polls/migrations/m_0001_auto.rs
+++ b/examples/tutorial02/polls/migrations/m_0001_auto.rs
@@ -1,5 +1,5 @@
-use tosin::db::migration::Migration;
-
+use tosin::db::migration::{DatabaseChange, Migration};
+use tosin::db::models::Field;
pub const MIGRATION: Migration = Migration {
id: 1usize,
name: "auto",
diff --git a/examples/tutorial02/polls/migrations/mod.rs b/examples/tutorial02/polls/migrations/mod.rs
index 56fe76d..b254c33 100644
--- a/examples/tutorial02/polls/migrations/mod.rs
+++ b/examples/tutorial02/polls/migrations/mod.rs
@@ -1,3 +1,3 @@
-use tosin::db::migration::{gather, Migration};
-
-gather!();
+use tosin::db::migration::Migration;
+mod m_0001_auto;
+pub const ALL: &[Migration] = &[m_0001_auto::MIGRATION];