aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2022-11-30 06:07:53 -0500
committerNathan Perry <np@nathanperry.dev>2022-11-30 06:07:53 -0500
commite9554feeff6e5e028030ac23c73fa170cae3f4b2 (patch)
tree215622d39fe25b21ef1dbfa97f18db17a3546f70
parent2eb72a7753283aa6e023bc526a1cc8b355e77520 (diff)
build: add build.rs to capture if migrations change
-rw-r--r--build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..ac3d3f6
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("cargo:rerun-if-changed=path/to/your/migration/dir/relative/to/your/Cargo.toml");
+}