From 85d53a3358819d15788e1196d110fb6fd7199c67 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 30 Jun 2021 17:06:02 -0600 Subject: delete gather_migrations since it gets miscached --- examples/tutorial02/polls/migrations/m_0001_auto.rs | 4 ++-- examples/tutorial02/polls/migrations/mod.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/tutorial02') 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]; -- cgit v1.2.3