From 685b47247aad71468f190c42929ca6f0dce843fa Mon Sep 17 00:00:00 2001 From: Melody Horn / boringcactus Date: Wed, 16 Jun 2021 12:36:47 -0600 Subject: make database backends generic --- examples/tutorial02/polls/migrations/mod.rs | 3 +++ examples/tutorial02/polls/mod.rs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 examples/tutorial02/polls/migrations/mod.rs (limited to 'examples/tutorial02/polls') diff --git a/examples/tutorial02/polls/migrations/mod.rs b/examples/tutorial02/polls/migrations/mod.rs new file mode 100644 index 0000000..64efe8d --- /dev/null +++ b/examples/tutorial02/polls/migrations/mod.rs @@ -0,0 +1,3 @@ +use tosin::db::migration::{Migration, gather}; + +gather!(); diff --git a/examples/tutorial02/polls/mod.rs b/examples/tutorial02/polls/mod.rs index f4fde54..4b5de71 100644 --- a/examples/tutorial02/polls/mod.rs +++ b/examples/tutorial02/polls/mod.rs @@ -1,5 +1,6 @@ use tosin::apps::AppConfig; +mod migrations; pub mod models; pub mod urls; pub mod views; @@ -7,5 +8,5 @@ pub mod views; pub use urls::urls; pub const APP: AppConfig = AppConfig { - + migrations: migrations::migrations, }; -- cgit v1.2.3