Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSetting up the schema file according to diesel.toml when running `embed_migrations!` macro #1805
Comments
This comment has been minimized.
|
|
sgrif
closed this
Aug 1, 2018
This comment has been minimized.
vityafx
commented
Aug 1, 2018
•
|
@sgrif I am doing |
This comment has been minimized.
This still applies to |
This comment has been minimized.
|
Here's a much more definitive reason. :) https://github.com/rust-lang/blog.rust-lang.org/pull/264/files#diff-c12c29289690c7837a4a9280fc339f4aR109 |
This comment has been minimized.
vityafx
commented
Aug 2, 2018
•
|
Wow, that's sad news. Thank you for this link :( So the only way now is invoking a command it seems. |
This comment has been minimized.
vityafx
commented
Aug 2, 2018
|
Can I still have a file in src directory which includes contents from generated file in the target directory? According the link you posted, this will not violate any rules because the directory will remain unchanged. |
vityafx commentedAug 1, 2018
•
edited
Could the
embed_migrations!macro also initialize the schema file asdiesel migration rundoes?Rust 1.27.2
Diesel 1.3 (both in Cargo.toml of my binary crate and diesel-cli itself).
In the changelog file it is said:
But I still want to perform migrations automatically and to generate my schema file automatically also. If
diesel migration runsetup the schema, whyembed_migrations!does not?