Merge pull request #1604 from okriuchykhin/ok_SCI_3177

Fix experiment workflow image display after touching [SCI-3177]
This commit is contained in:
Alex Kriuchykhin 2019-03-28 09:51:01 +01:00 committed by GitHub
commit 9f5b331b9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(