20160921000001_permission_active.rb.rb 339 B

123456789101112
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class PermissionActive < ActiveRecord::Migration[4.2]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. add_column :permissions, :active, :boolean, null: false, default: true
  7. Rails.cache.clear
  8. end
  9. end