Migration error with Redmine 3.3 (1.5.7 devel) #538

This commit is contained in:
Karel Picman 2016-06-20 15:53:26 +02:00
parent f6097b30e7
commit 38676e63d7

View File

@ -26,7 +26,7 @@ class ApprovalWorkflowStdFields < ActiveRecord::Migration
# Set updated_on
DmsfWorkflow.all.each(&:touch)
# Set created_on and author_id
DmsfWorkflow.update_all 'created_on = updated_on, author_id = (select id from users where admin = 1 limit 1)'
DmsfWorkflow.update_all 'created_on = updated_on, author_id = (select id from users where admin limit 1)'
end
def self.down