Skip to content

Commit c15f323

Browse files
Remove references to Quota which does no longer exist (#121)
## πŸ“ Description A month back we removed deprecated tables for Quotas and UserRefs. In Guard, there was still a reference to this entity, and this PR removed it. ## βœ… Checklist - [x] I have tested this change - [ ] This change requires documentation update
1 parent 9c92112 commit c15f323

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

β€Žguard/lib/guard/front_repo.ex

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@ defmodule Guard.FrontRepo do
33
otp_app: :guard,
44
adapter: Ecto.Adapters.Postgres
55

6-
defmodule Quota do
7-
use Ecto.Schema
8-
9-
@primary_key {:id, :binary_id, autogenerate: true}
10-
11-
schema "quotas" do
12-
field(:type, :string)
13-
field(:value, :integer)
14-
field(:organization_id, :binary_id)
15-
end
16-
end
17-
186
defmodule OauthConnection do
197
use Ecto.Schema
208

β€Žguard/lib/guard/store/user.ex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ defmodule Guard.Store.User do
268268
repo.delete_all(
269269
from(c in Repo.OrganizationContact, where: c.organization_id == ^org.id)
270270
)
271-
272-
repo.delete_all(from(q in Repo.Quota, where: q.organization_id == ^org.id))
273271
end)
274272

275273
{:ok, :deleted_related_data}

0 commit comments

Comments
Β (0)