Retroactively Change Data Type of Table Field (Phoenix / Ecto)

From ElixirBlocks
Revision as of 16:42, 2 May 2024 by Admin (talk | contribs) (Created page with "Example: <source> alter table(:name_of_table) do modify :content, :binary end </source>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Example:

alter table(:name_of_table) do
  modify :content, :binary
end