Add posts, tags, tagging, to database. Create references to align with new DB model. Add image of mermaid template model.

This commit is contained in:
hannah.dagemark 2025-05-15 16:35:29 +02:00
commit 663c583a51
17 changed files with 154 additions and 2 deletions

6
app/models/post.rb Normal file
View file

@ -0,0 +1,6 @@
class Post < ApplicationRecord
belongs_to :user
belongs_to :image
has_many :taggings, as: :taggable
has_many :tags, through: :taggings
end