From 7969e3a85dcb2d936fa2e09b4253b8e801c48c6e Mon Sep 17 00:00:00 2001 From: Melody Horn / boringcactus Date: Fri, 18 Jun 2021 10:32:01 -0600 Subject: make gathered list names consistent --- examples/tutorial01/polls/mod.rs | 2 +- examples/tutorial02/polls/mod.rs | 2 +- src/bin/tosin-admin.rs | 2 +- src/contrib/admin/mod.rs | 2 +- tosin-macros/src/lib.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/tutorial01/polls/mod.rs b/examples/tutorial01/polls/mod.rs index d15a1ca..7f02b17 100644 --- a/examples/tutorial01/polls/mod.rs +++ b/examples/tutorial01/polls/mod.rs @@ -11,5 +11,5 @@ pub use urls::urls; pub const APP: AppConfig = AppConfig { name: module_path!(), models: models::ALL, - migrations: migrations::migrations, + migrations: migrations::ALL, }; diff --git a/examples/tutorial02/polls/mod.rs b/examples/tutorial02/polls/mod.rs index 1968d5a..2c50e84 100644 --- a/examples/tutorial02/polls/mod.rs +++ b/examples/tutorial02/polls/mod.rs @@ -10,5 +10,5 @@ pub use urls::urls; pub const APP: AppConfig = AppConfig { name: module_path!(), models: models::ALL, - migrations: migrations::migrations, + migrations: migrations::ALL, }; diff --git a/src/bin/tosin-admin.rs b/src/bin/tosin-admin.rs index a0ea850..4ca2d15 100644 --- a/src/bin/tosin-admin.rs +++ b/src/bin/tosin-admin.rs @@ -42,7 +42,7 @@ pub use urls::urls; pub const APP: AppConfig = AppConfig { name: module_path!(), models: models::ALL, - migrations: migrations::migrations, + migrations: migrations::ALL, }; "#; const APP_MIGRATIONS: &str = r#" diff --git a/src/contrib/admin/mod.rs b/src/contrib/admin/mod.rs index 8572f8d..7b442b2 100644 --- a/src/contrib/admin/mod.rs +++ b/src/contrib/admin/mod.rs @@ -7,5 +7,5 @@ pub mod site; pub const APP: AppConfig = AppConfig { name: module_path!(), models: models::ALL, - migrations: migrations::migrations, + migrations: migrations::ALL, }; diff --git a/tosin-macros/src/lib.rs b/tosin-macros/src/lib.rs index 408378f..531a92b 100644 --- a/tosin-macros/src/lib.rs +++ b/tosin-macros/src/lib.rs @@ -50,7 +50,7 @@ pub fn gather_migrations(_input: TokenStream) -> TokenStream { let gen = quote! { #( mod #migrations; )* - pub const migrations: &[Migration] = &[ + pub const ALL: &[Migration] = &[ #(#migrations::MIGRATION),* ]; }; -- cgit v1.2.3