Sha256: 2bcbc3e83c73b000c65bea25bab761378fadf7a7ded67bc6b8fafe4867e9ff65
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
class CreateCbac < ActiveRecord::Migration def self.up create_table :cbac_permissions do |t| t.integer :generic_role_id, :default => 0 t.string :context_role t.integer :privilege_set_id t.timestamps end create_table :cbac_generic_roles do |t| t.string :name t.text :remarks t.timestamps end create_table :cbac_memberships do |t| t.integer :user_id t.integer :generic_role_id t.timestamps end create_table :cbac_privilege_set do |t| t.string :name t.timestamps end # create_table :cbac_context_role do |t| # t.string :name # t.timestamps # end end def self.down drop_table :cbac_permissions drop_table :cbac_generic_roles drop_table :cbac_memberships drop_table :cbac_privilege_set # drop_table :cbac_context_role end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cbac-0.3.1 | generators/cbac/templates/migrate/create_cbac.rb |