Karel Pičman 2018-11-07 18:05:01 +01:00
parent 13d2de6661
commit 9084898558

View File

@ -29,7 +29,7 @@ class ApprovalWorkflowStdFields < ActiveRecord::Migration
DmsfWorkflow.all.each(&:touch) DmsfWorkflow.all.each(&:touch)
# Set created_on and author_id # Set created_on and author_id
admin_ids = User.active.where(admin: true).limit(1).ids admin_ids = User.active.where(admin: true).limit(1).ids
DmsfWorkflow.update_all(created_on: :updated_on, author_id: admin_ids.first) DmsfWorkflow.update_all(['created_on = updated_on, author_id = ?', admin_ids.first])
end end
def down def down