Skip to content

Commit 2a4b9be

Browse files
remove _type attribute from nodes again
we now are using node containers for these purposes. the attribute is not used anymore
1 parent 9494444 commit 2a4b9be

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

lib/radiator/outline/node.ex

-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ defmodule Radiator.Outline.Node do
1717
field :content, :string
1818
field :creator_id, :integer
1919

20-
field :_type, Ecto.Enum,
21-
values: [:node, :global_root, :global_inbox, :episode_inbox, :episode_root]
22-
2320
field :level, :integer, virtual: true
2421

2522
belongs_to :outline_node_container, NodeContainer
@@ -48,7 +45,6 @@ defmodule Radiator.Outline.Node do
4845
:parent_id,
4946
:prev_id,
5047
:show_id,
51-
:_type,
5248
:outline_node_container_id
5349
])
5450
|> put_uuid()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule Radiator.Repo.Migrations.RemoveTypeFromNodes do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:outline_nodes) do
6+
remove :_type, :string, default: "node"
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)