def blog_post(attrs) do seed_generator({MyApp.BlogPost, %{}}, overrides: attrs)end
def blog_post(attrs) do seed_generator({MyApp.BlogPost, %{}}, overrides: attrs)end
# in testowners = generate_many(author())generate(blog_post(authors: authors))
# in testowners = generate_many(author())generate(blog_post(authors: authors))
Seems that belongs_to works OK using
thing_id
thing_id
but I'm trying to seed some many_to_manys which doesn't seem to work as I'd expect. The docs I'm finding seem fairly sparse on this sort of thing so I'm really feeling my way around here
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.