VARCHAR(custom_size)的PostgreSQL的陣列I具有外生模式是這樣的: schema "quotes" do
field :quote, :string
field :tags, {:array, :string}
timestamps()
end
在對應的遷移有: create table(:quotes) do
add :q
我有以下router.ex: scope "/api", MyAppWeb do
get "/activate", SubscriptionController, :create, as: :activate_account
end
scope "/", MyAppWeb do
get "/*path", AppController, :index
end
Subs