From e4de5bb9880ac88b1c0a01a6e0b802a70696d0c6 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Sun, 14 May 2017 20:41:25 +0200 Subject: [PATCH] Make more models (re-)seedable. --- app/models/macro.rb | 1 + app/models/object_manager/attribute.rb | 1 + app/models/trigger.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/app/models/macro.rb b/app/models/macro.rb index 4d0a0b771..40c25f861 100644 --- a/app/models/macro.rb +++ b/app/models/macro.rb @@ -3,6 +3,7 @@ class Macro < ApplicationModel include ChecksClientNotification include ChecksLatestChangeObserved + include CanSeed store :perform validates :name, presence: true diff --git a/app/models/object_manager/attribute.rb b/app/models/object_manager/attribute.rb index d49035ffd..750128734 100644 --- a/app/models/object_manager/attribute.rb +++ b/app/models/object_manager/attribute.rb @@ -1,5 +1,6 @@ class ObjectManager::Attribute < ApplicationModel include ChecksClientNotification + include CanSeed self.table_name = 'object_manager_attributes' diff --git a/app/models/trigger.rb b/app/models/trigger.rb index 23b71280d..65bf1cbb7 100644 --- a/app/models/trigger.rb +++ b/app/models/trigger.rb @@ -2,6 +2,7 @@ class Trigger < ApplicationModel include ChecksConditionValidation + include CanSeed store :condition store :perform