このコミットが含まれているのは:
2026-04-26 17:33:26 +09:00
コミット c4f5df8b44
6個のファイルの変更51行の追加31行の削除
+2
ファイルの表示
@@ -13,6 +13,8 @@ class WikiPage < ApplicationRecord
foreign_key: :redirect_page_id,
dependent: :nullify
has_many :wiki_versions
belongs_to :tag_name
validates :tag_name, presence: true
+8
ファイルの表示
@@ -0,0 +1,8 @@
class WikiVersion < ApplicationRecord
include VersionRecord
belongs_to :wiki_page
validates :title, presence: true
validates :body, presence: true
end