Sha256: 7fc0403b62f3cf54f094fc295312d6eec09da62efada5028c35d1363672f3d1a

Contents?: true

Size: 449 Bytes

Versions: 19

Compression:

Stored size: 449 Bytes

Contents

class AddIdentityProviderServiceEnum < ActiveRecord::Migration[6.0]
  def change
    def up
      execute <<-SQL
        CREATE TYPE identity_provider_service AS ENUM ('OKTA', 'AZURE');
      SQL
      change_column :identity_providers, :service, :identity_provider_service
    end
  
    def down
      chnage_column :identity_providers, :service, :text
      execute <<-SQL
        DROP TYPE identity_provider_service;
      SQL
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
osso-0.0.3.27 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.26 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.25 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.24 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.23 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.22 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.21 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.20 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.19 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.18 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.17 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.16 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.15 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.14 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.13 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.12 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.11 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.9 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb
osso-0.0.3.8 lib/osso/db/migrate/20200714223226_add_identity_provider_service_enum.rb