master
class Category < ApplicationRecord has_many :categories_posts has_many :posts, through: :categories_posts validates :categoryName, presence: true, uniqueness: true end