mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
9 lines
371 B
Ruby
9 lines
371 B
Ruby
# frozen_string_literal: true
|
|
|
|
# MachineCategory used to categorize Machines.
|
|
class MachineCategory < ApplicationRecord
|
|
has_many :machines, dependent: :nullify
|
|
accepts_nested_attributes_for :machines, allow_destroy: true
|
|
has_many :plan_limitations, dependent: :destroy, inverse_of: :machine_category, foreign_type: 'limitable_type', foreign_key: 'limitable_id'
|
|
end
|