mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-16 16:12:41 +00:00
18 lines
425 B
Elixir
18 lines
425 B
Elixir
|
defmodule Bonfire.Encrypt.Repo.Migrations.InitSecret do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
if Code.ensure_loaded?(Bonfire.Encrypt.Migrations) do
|
||
|
require Bonfire.Encrypt.Migrations
|
||
|
|
||
|
def up do
|
||
|
Bonfire.Encrypt.Migrations.migrate_secret()
|
||
|
end
|
||
|
|
||
|
def down do
|
||
|
Bonfire.Encrypt.Migrations.migrate_secret()
|
||
|
end
|
||
|
else
|
||
|
IO.puts("Skip Bonfire.Encrypt migrations because the extension is not available.")
|
||
|
end
|
||
|
end
|