philomena/priv/repo/migrations/20200706171350_add_duration_to_images.exs
2020-07-06 14:00:02 -04:00

14 lines
333 B
Elixir

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