mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
14 lines
333 B
Elixir
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
|