Using alias in create_mixin_table breaks the migration
I am going through the hacking docs and found a small issue doing make dev-setup
:
21:56:15.319 [info] == Running 20200612105739 CommonsPub.Repo.Migrations.Profile.up/0 forward
21:56:15.320 [info] create table if not exists Elixir.CommonsPub.Profiles.Profile
21:56:15.400 [info] create index if not exists profile_creator_id_index
** (Postgrex.Error) ERROR 42P01 (undefined_table) relation "profile" does not exist
It seems to be an issue with aliases not being resolved. Same issue happens with Taggable
Using a full path instead solves the issue.
create_mixin_table(CommonsPub.Profiles.Profile)
Happy to create a merge request.