architex/priv/repo/migrations/20210729143750_change_room_state_to_array.exs

11 lines
273 B
Elixir
Raw Normal View History

defmodule MatrixServer.Repo.Migrations.ChangeRoomStateToArray do
use Ecto.Migration
def change do
alter table(:rooms) do
remove :state, :map, default: %{}, null: false
add :state, {:array, {:array, :string}}, default: [], null: false
end
end
end