Sha256: 1dd0f4550f7eb8e7ecdee16d80d0055503dc910faa070c209bb6d32ae275a1d1
Contents?: true
Size: 529 Bytes
Versions: 3
Compression:
Stored size: 529 Bytes
Contents
class CreateMksAuthMenus < ActiveRecord::Migration[5.0] 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
3 entries across 3 versions & 1 rubygems