Sha256: 946ad0b7c1f05af36f406cbea477dedf7b5864f4b5eca757946ffca7d41bda40

Contents?: true

Size: 468 Bytes

Versions: 11

Compression:

Stored size: 468 Bytes

Contents

class CreateMksMenusUserRoles < ActiveRecord::Migration[5.2]
  def change
    create_table :mks_auth_menus_user_roles do |t|
      t.references :menu, index: false
      t.references :user_role, index: false
    end
    add_index :mks_auth_menus_user_roles, [:menu_id, :user_role_id]
    add_foreign_key :mks_auth_menus_user_roles, :mks_auth_menus, column: :menu_id
    add_foreign_key :mks_auth_menus_user_roles, :mks_auth_user_roles, column: :user_role_id
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mks_auth-1.0.14 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.13 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.12 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.11 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.10 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.9 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.8 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.7 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.6 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.5 db/migrate/20161029074023_create_mks_menus_user_roles.rb
mks_auth-1.0.4 db/migrate/20161029074023_create_mks_menus_user_roles.rb