Sha256: b0f6060328985145482714506988b7d4b93723d210ade804c20ab2f7c3cdf1d1

Contents?: true

Size: 489 Bytes

Versions: 15

Compression:

Stored size: 489 Bytes

Contents

class CreateSisCoreApplicationModules < ActiveRecord::Migration[6.0]
  def change
    create_table :sis_core_application_modules do |t|
      t.string :code, null: false
      t.string :name, null: false

      t.timestamps
    end

    create_table :sis_core_application_modules_users, id: false do |t|
      t.belongs_to :application_module, index: { name: 'app_module_on_app_modules_usr_indx' }
      t.belongs_to :user, index: { name: 'usr_on_app_modules_usr_indx' }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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