This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -207,30 +207,6 @@ defmodule GroupherServer.CMS.Helper.Macros do
207
207
end
208
208
end
209
209
210
- @ doc """
211
- for GroupherServer.CMS.Model.Community
212
-
213
- # TABLE: "communities_[article]s"
214
- add(:community_id, references(:communities, on_delete: :delete_all), null: false)
215
- add(:[article]_id, references(:cms_[article]s, on_delete: :delete_all), null: false)
216
-
217
- create(unique_index(:communities_[article]s, [:community_id, :[article]_id]))
218
- """
219
-
220
- # defmacro community_article_fields() do
221
- # @article_threads
222
- # |> Enum.map(fn thread ->
223
- # quote do
224
- # many_to_many(
225
- # unquote(:"#{thread}s"),
226
- # Module.concat(CMS.Model, Recase.to_pascal(to_string(unquote(thread)))),
227
- # join_through: unquote("communities_#{to_string(thread)}s"),
228
- # join_keys: [community_id: :id] ++ Keyword.new([{unquote(:"#{thread}_id"), :id}])
229
- # )
230
- # end
231
- # end)
232
- # end
233
-
234
210
@ doc """
235
211
for GroupherServer.CMS.[Article]
236
212
Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ defmodule GroupherServer.CMS.Model.Community do
70
70
# on_replace: :delete
71
71
)
72
72
73
- # community_article_fields()
74
- #
75
73
# posts_block_list ...
76
74
timestamps ( type: :utc_datetime )
77
75
end
You can’t perform that action at this time.
0 commit comments