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