Skip to content

Commit

Permalink
fix: model conflict false positive (#957)
Browse files Browse the repository at this point in the history
Co-authored-by: Elad Kaplan <[email protected]>
  • Loading branch information
ABruel and kaplanelad authored Nov 9, 2024
1 parent 2dc54b3 commit 7966e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loco-gen/src/templates/model.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% set module_name = "m" ~ mig_ts ~ "_" ~ plural_snake -%}
{% set model = name | plural | pascal_case -%}
to: "migration/src/{{module_name}}.rs"
skip_glob: "migration/src/*_{{plural_snake}}.rs"
skip_glob: "migration/src/m????????_??????_{{plural_snake}}.rs"
message: "Migration for `{{name}}` added! You can now apply it with `$ cargo loco db migrate`."
injections:
- into: "migration/src/lib.rs"
Expand Down

0 comments on commit 7966e66

Please sign in to comment.