cirandas.net

ref: master

vendor/plugins/access_control/test/schema.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ActiveRecord::Migration.verbose = false
 
ActiveRecord::Schema.define(:version => 0) do

  create_table :access_control_test_roles, :force => true do |t|
   t.column :name,           :string
   t.column :permissions,    :string
   t.column :key,            :string
   t.column :system,         :boolean, :default => false
   t.column :environment_id, :integer
  end

  create_table :access_control_test_role_assignments, :force => true do |t|
   t.column :role_id,       :integer
   t.column :accessor_id,   :integer
   t.column :accessor_type, :string
   t.column :resource_id,   :integer
   t.column :resource_type, :string
   t.column :is_global,     :boolean
  end
 
  create_table :access_control_test_accessors, :force => true do |t|
    t.column :name, :string
  end  
  
  create_table :access_control_test_resources, :force => true do |t|
    t.column :name, :string
  end
end
 
ActiveRecord::Migration.verbose = true