Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running diesel migrations generates schema.rs at path that depends on cwd #2057

Closed
Ten0 opened this issue May 9, 2019 · 0 comments · Fixed by #2069
Closed

Running diesel migrations generates schema.rs at path that depends on cwd #2057

Ten0 opened this issue May 9, 2019 · 0 comments · Fixed by #2069
Milestone

Comments

@Ten0
Copy link
Member

Ten0 commented May 9, 2019

We would expect to have it generated at a path that depends on the project root (src/schema.rs) but if I run diesel migrations while in a subdirectory, it will create an src directory and a schema.rs file whereever I am.

Is this intended ?

sgrif added a commit that referenced this issue May 16, 2019
I went ahead and also changed the search for project root to look for
`diesel.toml` first, which should improve our behavior in workspaces.

Fixes #2057.
@weiznich weiznich added this to the 2.0 milestone Jan 22, 2020
weiznich pushed a commit that referenced this issue Feb 26, 2020
I went ahead and also changed the search for project root to look for
`diesel.toml` first, which should improve our behavior in workspaces.

Fixes #2057.
weiznich pushed a commit that referenced this issue Mar 4, 2020
I went ahead and also changed the search for project root to look for
`diesel.toml` first, which should improve our behavior in workspaces.

Fixes #2057.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants