mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-11 03:28:01 +01:00
15 lines
333 B
Elixir
15 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
|