2018-10-11 15:37:39 +00:00
|
|
|
defmodule Mobilizon.Repo.Migrations.AddApprovedStatusToMember do
|
2018-06-06 15:42:53 +00:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def up do
|
|
|
|
alter table(:members) do
|
2019-02-22 13:18:52 +00:00
|
|
|
add(:approved, :boolean, default: true)
|
2018-06-06 15:42:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:members) do
|
2019-02-22 13:18:52 +00:00
|
|
|
remove(:approved)
|
2018-06-06 15:42:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|