2018-11-06 10:30:27 +01:00
|
|
|
defmodule Mobilizon.Repo.Migrations.AddDefaultActorUserField do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def up do
|
|
|
|
alter table(:users) do
|
2019-02-22 14:18:52 +01:00
|
|
|
add(:default_actor_id, :integer)
|
2018-11-06 10:30:27 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:users) do
|
2019-02-22 14:18:52 +01:00
|
|
|
remove(:default_actor_id)
|
2018-11-06 10:30:27 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|