Skip to content

Commit

Permalink
Add build.rs with rerun-if-changed for migrations directory
Browse files Browse the repository at this point in the history
This allows `cargo build` to rebuild correctly when there are modified or new migrations without any code changes.
  • Loading branch information
jorgenpt authored and cljoly committed Mar 19, 2024
1 parent f14e7f6 commit dc4aaae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/from-directory/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("cargo:rerun-if-changed=migrations/");
}

0 comments on commit dc4aaae

Please sign in to comment.