1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/models/project_category.rb
2023-06-29 08:47:42 +02:00

7 lines
202 B
Ruby

class ProjectCategory < ApplicationRecord
validates :name, presence: true
has_many :projects_project_categories, dependent: :destroy
has_many :projects, through: :projects_project_categories
end