Sha256: 6033940a08a9713d3951b755ed7a09062acd468326518792e2f1130299baf20e

Contents?: true

Size: 751 Bytes

Versions: 4

Compression:

Stored size: 751 Bytes

Contents

class CreateCbacUpgradePath < ActiveRecord::Migration
  def self.up

    create_table :cbac_staged_permissions do |t|
      t.integer :pristine_role_id
      t.string :privilege_set_name
      t.integer :line_number
      t.string :comment
      t.text :operation, :limit => 2
      t.timestamps
    end

    create_table :cbac_staged_roles do |t|
      t.string :role_type
      t.string :name
      t.integer :role_id
      t.timestamps
    end
    
    create_table :cbac_known_permissions do |t|
      t.integer :permission_number, :null => :no
      t.integer :permission_type, :default => 0
    end
  end

  def self.down
    drop_table :cbac_staged_permissions
    drop_table :cbac_staged_roles
    drop_table :cbac_known_permissions
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cbac-0.5.4 generators/cbac/templates/migrate/create_cbac_upgrade_path.rb
cbac-0.5.3 generators/cbac/templates/migrate/create_cbac_upgrade_path.rb
cbac-0.5.2 generators/cbac/templates/migrate/create_cbac_upgrade_path.rb
cbac-0.5.1 generators/cbac/templates/migrate/create_cbac_upgrade_path.rb