diff options
-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),* ]; }; |