Sha256: 52950a4e575f85fde6813f3b8f30f545fd670974173a022363f8a1b7b7b1e0a1

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

class CreateUserHasRoles < ActiveRecord::Migration[5.0]
  def change
    create_table :user_has_roles do |t|
      t.references :user, foreign_key: {on_delete: :cascade}, null: false
      t.references :role, foreign_key: true, null: false

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_seed-0.3.0.beta.4 db/migrate/20100606065209_create_user_has_roles.rb
enju_seed-0.3.0.beta.3 db/migrate/20100606065209_create_user_has_roles.rb