mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
fixed delete machine error
This commit is contained in:
parent
485447f4da
commit
369be9dd63
@ -10,8 +10,6 @@ class Machine < ActiveRecord::Base
|
||||
|
||||
has_and_belongs_to_many :projects, join_table: 'projects_machines'
|
||||
|
||||
has_and_belongs_to_many :trainings, join_table: 'trainings_machines'
|
||||
|
||||
validates :name, presence: true, length: { maximum: 50 }
|
||||
validates :description, presence: true
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user