Sha256: bd854fb3e12786a46dce67bc11ec19582b94e497dfb549d0c040e129caf64b0a

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 Bytes

Contents

class CreateMksUsersUserRoles < ActiveRecord::Migration[5.0]
  def change
    create_table :mks_auth_users_user_roles, id: false do |t|
      t.references :user, index: false
      t.references :user_role, index: false
    end
    add_index :mks_auth_users_user_roles, [:user_id, :user_role_id]
    add_foreign_key :mks_auth_users_user_roles, :mks_auth_users, :column => :user_id
    add_foreign_key :mks_auth_users_user_roles, :mks_auth_user_roles, :column => :user_role_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mks_auth-1.4.0 db/migrate/20161029071047_create_mks_users_user_roles.rb
mks_auth-1.2.0 db/migrate/20161029071047_create_mks_users_user_roles.rb
mks_auth-1.0.0 db/migrate/20161029071047_create_mks_users_user_roles.rb