I want to write something like this:
defmodule JobHunt.Repo.Migrations.CompaniesHaveManyJobs do use Ecto.Migration def change do alter table (:companies) do add :jobs, :has_many, Job end end end
Running mix ecto.migrate with this migration gives an error, so what is the right way to do this?
source share