Sha256: 92961a57e7d939e58b502e9e28991a90fc5aef22290411890ac78bab027d58e1

Contents?: true

Size: 460 Bytes

Versions: 41

Compression:

Stored size: 460 Bytes

Contents

class AddIdentityProviderStatusEnumAndUseOnIdentityProviders < ActiveRecord::Migration[6.0]
  def up
    execute <<~SQL
      CREATE TYPE identity_provider_status AS ENUM ('PENDING', 'CONFIGURED', 'ACTIVE', 'ERROR');
    SQL
    add_column :identity_providers, :status, :identity_provider_status, default: 'PENDING'
  end

  def down
    remove_column :identity_providers, :status
    execute <<~SQL
      DROP TYPE identity_provider_status;
    SQL
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
osso-0.0.3.8 lib/osso/db/migrate/20200722230116_add_identity_provider_status_enum_and_use_on_identity_providers.rb