2018-01-12 11:53:43 +00:00
|
|
|
class LdapSamaccountnameToUid < 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')
|
2018-01-12 11:53:43 +00:00
|
|
|
|
|
|
|
Delayed::Job.enqueue MigrationJob::LdapSamaccountnameToUid.new
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|