Sha256: 46d8bbeec332d0f076ae64291b599d2274bba1c48904279c6f60377bf7c87cb9
Contents?: true
Size: 523 Bytes
Versions: 11
Compression:
Stored size: 523 Bytes
Contents
class CreateMksAuthMenus < ActiveRecord::Migration[5.2] def change create_table :mks_auth_menus do |t| t.string :text, null: false t.string :icon_cls t.string :class_name t.string :location t.integer :parent_id, index: true t.references :application_module, index: true t.timestamps end add_foreign_key :mks_auth_menus, :mks_auth_menus, column: :parent_id add_foreign_key :mks_auth_menus, :mks_auth_application_modules, column: :application_module_id end end
Version data entries
11 entries across 11 versions & 1 rubygems