From 59e55ff84855485c45a63c9eaad7caa10a05ac0a Mon Sep 17 00:00:00 2001 From: SphericalKat Date: Mon, 9 Aug 2021 14:38:20 +0530 Subject: [PATCH] Revert "feat(user): add ecto migration for user" This reverts commit 9613fcebde2f5987f88162c248e75e08394ee1e3. --- lib/ketbin/api/user.ex | 3 --- lib/ketbin/arch.ex | 18 ------------------ lib/ketbin/crud/user.ex | 3 --- lib/ketbin/schema/user.ex | 17 ----------------- .../migrations/20210809085801_create_users.exs | 12 ------------ 5 files changed, 53 deletions(-) delete mode 100644 lib/ketbin/api/user.ex delete mode 100644 lib/ketbin/arch.ex delete mode 100644 lib/ketbin/crud/user.ex delete mode 100644 lib/ketbin/schema/user.ex delete mode 100644 priv/repo/migrations/20210809085801_create_users.exs diff --git a/lib/ketbin/api/user.ex b/lib/ketbin/api/user.ex deleted file mode 100644 index 8f4f9bc..0000000 --- a/lib/ketbin/api/user.ex +++ /dev/null @@ -1,3 +0,0 @@ -defmodule Ketbin.Api.User do - -end \ No newline at end of file diff --git a/lib/ketbin/arch.ex b/lib/ketbin/arch.ex deleted file mode 100644 index df38547..0000000 --- a/lib/ketbin/arch.ex +++ /dev/null @@ -1,18 +0,0 @@ -defmodule Ketbin.Schema do - @moduledoc """ - Ketbin keeps the contexts that define your schemas - """ -end - - -defmodule Ketbin.Crud do - @moduledoc """ - Ketbin keeps the contexts that define your CRUD functions - """ -end - -defmodule Ketbin.Api do - @moduledoc """ - Ketbin keeps the contexts that define your business logic. - """ -end \ No newline at end of file diff --git a/lib/ketbin/crud/user.ex b/lib/ketbin/crud/user.ex deleted file mode 100644 index fc89cf4..0000000 --- a/lib/ketbin/crud/user.ex +++ /dev/null @@ -1,3 +0,0 @@ -defmodule Ketbin.Crud.User do - -end \ No newline at end of file diff --git a/lib/ketbin/schema/user.ex b/lib/ketbin/schema/user.ex deleted file mode 100644 index 4e0fc8e..0000000 --- a/lib/ketbin/schema/user.ex +++ /dev/null @@ -1,17 +0,0 @@ -defmodule Ketbin.Schema.User do - use Ecto.Schema - import Ecto.Changeset - - schema "users" do - field :firebase_id, :string - - timestamps() - end - - @doc false - def changeset(user, attrs) do - user - |> cast(attrs, [:firebase_id]) - |> validate_required([:firebase_id]) - end -end diff --git a/priv/repo/migrations/20210809085801_create_users.exs b/priv/repo/migrations/20210809085801_create_users.exs deleted file mode 100644 index b2162b8..0000000 --- a/priv/repo/migrations/20210809085801_create_users.exs +++ /dev/null @@ -1,12 +0,0 @@ -defmodule Ketbin.Repo.Migrations.CreateUsers do - use Ecto.Migration - - def change do - create table(:users) do - add :firebase_id, :string - - timestamps() - end - - end -end