20171213000001_change_authorization_token_size.rb 273 B

12345678910
  1. class ChangeAuthorizationTokenSize < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup to avoid running the migration
  4. return if !Setting.find_by(name: 'system_init_done')
  5. change_column :authorizations, :token, :string, limit: 2500
  6. end
  7. end