diff options
author | Melody Horn <melody@boringcactus.com> | 2021-06-30 17:06:02 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-06-30 17:06:02 -0600 |
commit | 85d53a3358819d15788e1196d110fb6fd7199c67 (patch) | |
tree | 6d8a8ea21ed967c13fafa5fa90e133e6e75f8f84 /examples/tutorial02 | |
parent | bc874c9d1363d3bf8865ea7a629eb976e23386b3 (diff) | |
download | tosin-85d53a3358819d15788e1196d110fb6fd7199c67.tar.gz tosin-85d53a3358819d15788e1196d110fb6fd7199c67.zip |
delete gather_migrations since it gets miscached
Diffstat (limited to 'examples/tutorial02')
-rw-r--r-- | examples/tutorial02/polls/migrations/m_0001_auto.rs | 4 | ||||
-rw-r--r-- | examples/tutorial02/polls/migrations/mod.rs | 6 |
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]; |