Sha256: 52bdb0eba6a8894d1c8b84af490a0e719d82640e90e99b76f042d1ba2230dc98

Contents?: true

Size: 324 Bytes

Versions: 15

Compression:

Stored size: 324 Bytes

Contents

class CreatePermissionRoles < ActiveRecord::Migration
  def up
    create_table :permission_roles do |t|
      t.integer :role_id
      t.integer :permission_id
    end
    
    add_index :permission_roles, :role_id
    add_index :permission_roles, :permission_id
  end

  def down
    drop_table :permission_roles
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
challah-0.5.4 db/migrate/20120127150436_create_permission_roles.rb
challah-0.5.3 db/migrate/20120127150436_create_permission_roles.rb
challah-0.5.2 db/migrate/20120127150436_create_permission_roles.rb
challah-0.5.1 db/migrate/20120127150436_create_permission_roles.rb
challah-0.5.0 db/migrate/20120127150436_create_permission_roles.rb
challah-0.4.1 db/migrate/20120127150436_create_permission_roles.rb
challah-0.4.0 db/migrate/20120127150436_create_permission_roles.rb
challah-0.3.5 db/migrate/20120127150436_create_permission_roles.rb
challah-0.3.4 db/migrate/20120127150436_create_permission_roles.rb
challah-0.3.3 db/migrate/20120127150436_create_permission_roles.rb
challah-0.3.2 db/migrate/20120127150436_create_permission_roles.rb
challah-0.3.1 db/migrate/20120127150436_create_permission_roles.rb
challah-0.3.0 db/migrate/20120127150436_create_permission_roles.rb
challah-0.2.1 db/migrate/20120127150436_create_permission_roles.rb
challah-0.2.0 db/migrate/20120127150436_create_permission_roles.rb