Replies: 2 comments
-
If you still want to use scaffolding, you can manually update the variable types in the generated controller to match those defined in the |
Beta Was this translation helpful? Give feedback.
-
I also encountered this problem. My solution was to use string instead, then manually modify the migration file and manually create it in the migration file. I used postgres |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Loco along with MariaDB as my database. I’ve been using the code generation command like this:
Is there any way to generate scaffold with enum column using
cargo loco generate scaffold
?If not directly supported, what’s the best practice for integrating enum fields in the generated models and migrations when using MariaDB?
Should I manually adjust the migration file and model? Any examples would be helpful.
Beta Was this translation helpful? Give feedback.
All reactions