Sha256: d8559b3391c02fa61cd9de5a0d5dfd4cb923093a3139d17c20099666bfe42c43

Contents?: true

Size: 492 Bytes

Versions: 9

Compression:

Stored size: 492 Bytes

Contents

class CreateEnterpriseAccounts < ActiveRecord::Migration[6.0]
  def change
    create_table :enterprise_accounts, id: :uuid do |t|
      t.string  :domain, null: false
      t.uuid :external_uuid
      t.integer :external_int_id
      t.string :external_id
    end

    add_index :enterprise_accounts, :domain, unique: true

    add_reference :saml_providers, :enterprise_account, type: :uuid, index: true    
    add_reference :users, :enterprise_account, type: :uuid, index: true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
osso-0.0.3.5 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.3.4 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.3.3 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.3.2 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.3.1 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.3 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.2.10 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.2.9 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb
osso-0.0.2.8 lib/osso/db/migrate/20200411192645_create_enterprise_accounts.rb