diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20150411000035_fix_identities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20150411000035_fix_identities.rb b/db/migrate/20150411000035_fix_identities.rb index 297e7eaa5e9..d4c6e545204 100644 --- a/db/migrate/20150411000035_fix_identities.rb +++ b/db/migrate/20150411000035_fix_identities.rb @@ -22,7 +22,7 @@ class FixIdentities < ActiveRecord::Migration # Update legacy identities execute "UPDATE identities SET provider = '#{new_provider}' WHERE provider = 'ldap';" - if defined?(LdapGroupLink) + if table_exists?('ldap_group_links') execute "UPDATE ldap_group_links SET provider = '#{new_provider}' WHERE provider IS NULL;" end end |