diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-18 10:32:01 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-18 10:32:01 -0600 |
commit | 7969e3a85dcb2d936fa2e09b4253b8e801c48c6e (patch) | |
tree | ae79a0c9fffa47d1a1fadbac189fc3d47b6794a2 | |
parent | 709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7 (diff) | |
download | tosin-7969e3a85dcb2d936fa2e09b4253b8e801c48c6e.tar.gz tosin-7969e3a85dcb2d936fa2e09b4253b8e801c48c6e.zip |
make gathered list names consistent
-rw-r--r-- | examples/tutorial01/polls/mod.rs | 2 | ||||
-rw-r--r-- | examples/tutorial02/polls/mod.rs | 2 | ||||
-rw-r--r-- | src/bin/tosin-admin.rs | 2 | ||||
-rw-r--r-- | src/contrib/admin/mod.rs | 2 | ||||
-rw-r--r-- | 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),* ]; }; |