Sha256: 3f3338ad4997a9e335b901f8f4403c91ae51975821e1eecba7de235ac3f8938a

Contents?: true

Size: 349 Bytes

Versions: 6

Compression:

Stored size: 349 Bytes

Contents

class CreateSpreeRolesPermissions < ActiveRecord::Migration
  def change
    create_table :spree_roles_permissions, :id => false do |t|
      t.integer :role_id, :null => false
      t.integer :permission_id, :null => false
    end

    add_index(:spree_roles_permissions, :role_id)
    add_index(:spree_roles_permissions, :permission_id)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_admin_roles_and_access-2.0.0 db/migrate/20130709104945_create_spree_roles_permissions.rb
spree_admin_roles_and_access-1.3.0 db/migrate/20130709104945_create_spree_roles_permissions.rb
spree_admin_roles_and_access-1.2.1 db/migrate/20130709104945_create_spree_roles_permissions.rb
spree_admin_roles_and_access-1.2.0 db/migrate/20130709104945_create_spree_roles_permissions.rb
spree_admin_roles_and_access-1.1.0 db/migrate/20130709104945_create_spree_roles_permissions.rb
spree_admin_roles_and_access-1.0.0 db/migrate/20130709104945_create_spree_roles_permissions.rb