3 ms·
In the getting started guide, it looks like they use an as-yet-non-existent Post struct to create the migration SQL. Where is the migration CLI getting the stru
by dikaiosune 11y ago
In the getting started guide, it looks like they use an as-yet-non-existent Post struct to create the migration SQL. Where is the migration CLI getting the struct's fields from if it hasn't yet been written in that part of the tutorial? Am I missing something obvious?
- steveklabnik 11y agoYou're supposed to write that SQL yourself, I believe. I'll file an issue to clear this up either way.
- rabidferret 11y agoThe CLI just generates the file structure. We fill in the SQL manually as part of the guide, and then create the structs immediately after that.
- dikaiosune 11y agoWhat I get for reading too quickly! Thanks for clarifying.
- rabidferret 11y agoIt wasn't super clear, anyway. Fixed in https://github.com/sgrif/diesel.rs-website/pull/5 https://github.com/sgrif/diesel.rs-website/pull/5 :)