2017-12-13 17:38:21 +00:00
|
|
|
class ChangeAuthorizationTokenSize < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
|
|
|
# return if it's a new setup to avoid running the migration
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2017-12-13 17:38:21 +00:00
|
|
|
|
|
|
|
change_column :authorizations, :token, :string, limit: 2500
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|