refactor: apply review notes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon 2026-02-20 18:24:20 +01:00
parent bc9ea818eb
commit b41f005d9e
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
9 changed files with 110 additions and 92 deletions

View file

@ -34,8 +34,8 @@ defmodule Mv.Repo.Migrations.AddJoinRequests do
def down do
drop_if_exists unique_index(:join_requests, [:confirmation_token_hash],
name: "join_requests_unique_confirmation_token_hash_index"
)
name: "join_requests_unique_confirmation_token_hash_index"
)
drop table(:join_requests)
end

View file

@ -0,0 +1,18 @@
defmodule Mv.Repo.Migrations.AlterJoinRequestsSchemaVersionToInteger do
@moduledoc """
Aligns schema_version with Ash attribute type :integer (concept review).
"""
use Ecto.Migration
def up do
alter table(:join_requests) do
modify :schema_version, :integer, null: false
end
end
def down do
alter table(:join_requests) do
modify :schema_version, :bigint, null: false
end
end
end