Browse Source

Fixes #3282 - Unable to upgrade from Zammad 3.3 to 3.6.

Rolf Schmidt 4 years ago
parent
commit
81d804576b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      db/migrate/20200527000000_agent_customer.rb

+ 1 - 1
db/migrate/20200527000000_agent_customer.rb

@@ -5,7 +5,7 @@ class AgentCustomer < ActiveRecord::Migration[5.2]
 
     Role.where(name: %w[Admin Agent Customer]).each do |role|
       role.preferences.delete(:not)
-      role.save!
+      role.update_column(:preferences, role.preferences) # rubocop:disable Rails/SkipsModelValidations
     end
 
     move_filter