abiwinanda / fictitious

Generate fictitious data in elixir for unit test
https://hex.pm/packages/fictitious
MIT License
14 stars 3 forks source link

Fix belongs to association to non-primary key field #2

Closed bedhilzz closed 4 years ago

bedhilzz commented 4 years ago

Previously, the belongs to fictinionize module only support the association to primary key field. In this Pull Request, I want to update it so that the fictionize can support association to non-primary key field.

I create an example using a social_media_informations table and create the belongs to association to email field in persons table. And also, since the has association is not supported yet, I update the get_association_field_key which accept the Ecto Has association.

abiwinanda commented 4 years ago

❤️ ❤️ ❤️