Sha256: 1ed37a6eca0406099f9906950648d0dbf7276bca0d5bc8efe5d4354e6fe2af9f

Contents?: true

Size: 568 Bytes

Versions: 15

Compression:

Stored size: 568 Bytes

Contents

class CreateSisCoreMenus < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_menus do |t|
      t.string :text, null: false
      t.string :icon_cls
      t.string :location
      t.integer :parent_id
      t.references :application_module, index: { name: 'app_module_on_menus_indx' }

      t.timestamps
    end

    create_table :sis_core_menus_user_roles, id: false do |t|
      t.belongs_to :menu, index: { name: 'menu_on_menus_usr_role_indx' }
      t.belongs_to :user_role, index: { name: 'usr_role_on_menus_usr_role_indx' }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.19 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.18 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.17 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.16 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.15 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.14 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.13 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.12 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.11 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.10 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.9 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.8 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.7 db/migrate/20200511165450_create_sis_core_menus.rb
sis_core-1.0.6 db/migrate/20200511165450_create_sis_core_menus.rb