OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/db/migrate/20120802152122_rename_auth_...

10 lines
278 B

class RenameAuthSourceLdap < ActiveRecord::Migration
def self.up
AuthSource.update_all ["type = ?", "LdapAuthSource"], ["type = ?", "AuthSourceLdap"]
end
def self.down
AuthSource.update_all ["type = ?", "AuthSourceLdap"], ["type = ?", "LdapAuthSource"]
end
end