Skip to content

Commit e0861bb

Browse files
authored
Merge pull request diesel-rs#965 from theduke/embed-migrations-link
Added a reference to embed_macros is the migrations module docs.
2 parents 78293fe + 90db6da commit e0861bb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

diesel/src/migrations/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
//! folder itself should have the structure `{version}_{migration_name}`. It is recommended that
1616
//! you use the timestamp of creation for the version.
1717
//!
18+
//! Migrations can either be run with the CLI or embedded into the compiled application
19+
//! and executed with code, for example right after establishing a database connection.
20+
//! For more information, consult the [`embed_migrations!`](../macro.embed_migrations.html) macro.
21+
//!
1822
//! ## Example
1923
//!
2024
//! ```text

0 commit comments

Comments
 (0)