当字段为Ecto类型{:array,:string}时,运行seeds.exs(仅限生产中)的Postgres错误

时间:2016-10-19 10:58:32

标签: elixir phoenix-framework ecto

我在我的模型中定义了一个Ecto类型{:array,:string}的字段。它在开发中工作正常但我在尝试仅在生产中运行seeds.exs时遇到此错误:

Ecto.ChangeError value ["images/specific/eventos/sixtyfive/1.jpg", "images/specific/eventos/sixtyfive/2.jpg", "images/specific/eventos/sixtyfive/3.jpg", "images/specific/eventos/sixtyfive/4.jpg", "images/specific/eventos/sixtyfive/5.jpg"] for `FabASA.Evento.imgPath` in `insert` does not match type :string

我是否需要更改迁移中的类型?

0 个答案:

没有答案