Hey! Thanks for your interest in my talk!
Quick answers to your questions:
So, for that reason I’ll ask, if somebody have a github repo of this talk.
Not yet, but I am planning on finishing one that I started to accompany this talk. I can post here when it’s ready.
The trouble that I have is with the embedded_schema. Because I was watching the video and it’s seems to be incomplete, he don’t explain how to declare the structure for the user schema, using something like embedded_one and also he don’t show how can we create the migrations for that embedded field.
The example I gave using
embedded_schemas was around Registrations. I apologize if it wasn’t clear, but I’m not actually persisting that embedded schema to the database. I’m using it to provide structure to a form or a set of user inputs and to manage changes and validations for those inputs. I’m then relying on the existing
User schema as well as the
Credential schema to persist to the relevant tables in the database. I hope that helps to clear the example up some! The
embeds_many functions are very useful for storing in a JSON column in the database, and I’ve certainly done that before, but not in this case.
If you have any further questions, please let me know.