Sha256: f8c31bc2714147a4994d693bc191aa9a7ebfa1d9e280cc6c90f4b3e729dafa6e

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 Bytes

Contents

# This migration comes from kaui (originally 20150112232813)
class CreateKauiAllowedUsers < ActiveRecord::Migration
  def change
    create_table :kaui_allowed_users do |t|
      t.string :kb_username
      t.string :description
      t.timestamps
    end

    add_index :kaui_allowed_users, [:kb_username], :unique => true

    create_table :kaui_allowed_user_tenants do |t|
      t.belongs_to :kaui_allowed_user, :index => true
      t.belongs_to :kaui_tenant, :index => true
      t.timestamps null: false
    end

    add_index :kaui_allowed_user_tenants, [:kaui_allowed_user_id, :kaui_tenant_id], :unique => true, :name => 'kaui_allowed_user_tenants_uniq'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kaui-0.9.0 test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
kaui-0.8.4 test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
kaui-0.8.3 test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
kaui-0.8.2 test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
kaui-0.8.1 test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb
kaui-0.8.0 test/dummy/db/migrate/20150116052159_create_kaui_allowed_users.kaui.rb