Class: AddSsoIssuerToIdentityProviders
- Inherits:
-
Object
- Object
- AddSsoIssuerToIdentityProviders
- Defined in:
- lib/osso/db/migrate/20201109160851_add_sso_issuer_to_identity_providers.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/osso/db/migrate/20201109160851_add_sso_issuer_to_identity_providers.rb', line 2 def change add_column :identity_providers, :sso_issuer, :string Osso::Models::IdentityProvider.all.each do |idp| idp.sso_issuer = idp.root_url + "/" + idp.domain idp.save end change_column_null :identity_providers, :sso_issuer, false end |