index.community/backend/priv/repo/migrations/20190726104004_add_instance_settings.exs

13 lines
301 B
Elixir
Raw Normal View History

2019-07-26 14:34:23 +00:00
defmodule Backend.Repo.Migrations.AddInstanceSettings do
use Ecto.Migration
def change do
alter table(:instances) do
add :opt_in, :boolean, default: false, null: false
add :opt_out, :boolean, default: false, null: false
end
create index(:instances, [:opt_out])
end
end