Fix experiment workflow image display after touching [SCI-3177]

This commit is contained in:
Oleksii Kriuchykhin 2019-03-27 17:02:59 +01:00
parent c2e1e85913
commit 37c559debd

View file

@ -49,6 +49,8 @@ class Experiment < ApplicationRecord
experiment.validates :archived_on, presence: true
end
after_touch { update_column(:workflowimg_updated_at, updated_at) }
scope :is_archived, ->(is_archived) { where("archived = ?", is_archived) }
def self.search(