Sha256: 9b24168bfe23afc803ee70372f5f863447d77ddab4d3a98ec7629bb84f9156f3

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

class CreateUserRoles < ActiveRecord::Migration[5.2]
    def change
        create_table :user_roles do |t|
            t.references :role, index: true, foreign_key: {on_delete: :cascade}
            t.references :user, index: true, foreign_key: {on_delete: :cascade}
      
            t.timestamps
        end
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbacan-0.1.2 lib/generators/install/templates/create_user_roles.rb
rbacan-0.1.1 lib/generators/install/templates/create_user_roles.rb
rbacan-0.1.0 lib/generators/install/templates/create_user_roles.rb