20171213000001_change_authorization_token_size.rb 350 B

123456789101112
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class ChangeAuthorizationTokenSize < ActiveRecord::Migration[5.1]
  3. def up
  4. # return if it's a new setup to avoid running the migration
  5. return if !Setting.exists?(name: 'system_init_done')
  6. change_column :authorizations, :token, :string, limit: 2500
  7. end
  8. end