mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
(bug) unable to create plan with plan limitation
This commit is contained in:
parent
d7d996bc6d
commit
9bc146d037
@ -2,6 +2,7 @@
|
||||
|
||||
- Fix a bug: unable to show project step image in markdown file
|
||||
- Fix a bug: unable to update Store Order sub type in statistics
|
||||
- Fix a bug: unable to create plan with plan limitation
|
||||
- Ability to show all availabilities in calender for admin
|
||||
- [TODO DEPLOY] `rails fablab:maintenance:regenerate_statistics[2014,1]`
|
||||
|
||||
|
@ -528,6 +528,7 @@ GEM
|
||||
zeitwerk (2.6.7)
|
||||
|
||||
PLATFORMS
|
||||
x86_64-darwin-20
|
||||
x86_64-darwin-21
|
||||
x86_64-linux
|
||||
|
||||
|
@ -8,7 +8,7 @@ class PlanLimitation < ApplicationRecord
|
||||
belongs_to :machine, foreign_key: 'limitable_id', inverse_of: :plan_limitations
|
||||
belongs_to :machine_category, foreign_key: 'limitable_id', inverse_of: :plan_limitations
|
||||
|
||||
validates :limitable_id, :limitable_type, :limit, :plan_id, presence: true
|
||||
validates :limitable_id, :limitable_type, :limit, presence: true
|
||||
validates :limitable_id, uniqueness: { scope: %i[limitable_type plan_id] }
|
||||
|
||||
# @return [Array<Machine,Event,Space,Training>]
|
||||
|
Loading…
x
Reference in New Issue
Block a user