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