philomena/priv/repo/migrations/20200706171350_add_duration_to_images.exs

15 lines
333 B
Elixir
Raw Permalink Normal View History

2020-07-06 20:00:02 +02:00
defmodule Philomena.Repo.Migrations.AddDurationToImages do
use Ecto.Migration
def change do
alter table("images") do
add :image_duration, :float
end
# After successful migration:
# alias Philomena.Elasticsearch
# alias Philomena.Images.Image
# Elasticsearch.update_mapping!(Image)
end
end