Ecto and CockroachDB/Postgres support for INTERLEAVE directive?

I was wondering how one might be able to establish/utilize a table using the INTERLEAVE IN PARENT directive when creating a new table using ecto schemas:

Is there any sort of support/escape hatch for this? How might I be able to model my schema using this with Ecto?


Hi @perezd if you need an escape hatch during migrations you can use

After the migration is done, it looks to me like ecto’s support for composite primary keys should sort out the rest that you need.

Awesome, thank you for the pointers!