Sha256: 330d64155a1a46059b79521174b57661366813ba7f57e899b155c75f6cc1b5be
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cbac-0.6.1 | lib/generators/cbac/copy_files/migrate/create_cbac_upgrade_path.rb |
cbac-0.6.0 | lib/generators/cbac/copy_files/migrate/create_cbac_upgrade_path.rb |