acts_permissive 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module ActsPermissive
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -74,10 +74,11 @@ describe ActsPermissive::PermissiveObject do
74
74
  end
75
75
 
76
76
  it "should correctly scope who_can_see" do
77
+ lst = ActsPermissive::Grouping.who_can_see(@widget)
77
78
  [@anne, @admin, @user].each do |u|
78
- ActsPermissive::Grouping.who_can_see(@widget).include?(u).should be_true
79
+ lst.include?(u).should be_true
79
80
  end
80
- ActsPermissive::Grouping.who_can_see(@widget).include?(@debbie).should be_false
81
+ lst.include?(@debbie).should be_false
81
82
  end
82
83
 
83
84
  it "should return a list of users who can perform the given functions" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_permissive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70182748099980 !ruby/object:Gem::Requirement
16
+ requirement: &70249315683020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70182748099980
24
+ version_requirements: *70249315683020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: uuidtools
27
- requirement: &70182748099140 !ruby/object:Gem::Requirement
27
+ requirement: &70249315682120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70182748099140
35
+ version_requirements: *70249315682120
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &70182748098100 !ruby/object:Gem::Requirement
38
+ requirement: &70249315720580 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70182748098100
46
+ version_requirements: *70249315720580
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
- requirement: &70182756391340 !ruby/object:Gem::Requirement
49
+ requirement: &70249315719800 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70182756391340
57
+ version_requirements: *70249315719800
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: pg
60
- requirement: &70182756390660 !ruby/object:Gem::Requirement
60
+ requirement: &70249315719140 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70182756390660
68
+ version_requirements: *70249315719140
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capybara
71
- requirement: &70182756389920 !ruby/object:Gem::Requirement
71
+ requirement: &70249315718440 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70182756389920
79
+ version_requirements: *70249315718440
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rspec
82
- requirement: &70182756389320 !ruby/object:Gem::Requirement
82
+ requirement: &70249315717540 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70182756389320
90
+ version_requirements: *70249315717540
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: spork
93
- requirement: &70182756388140 !ruby/object:Gem::Requirement
93
+ requirement: &70249315716360 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 0.9.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70182756388140
101
+ version_requirements: *70249315716360
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: guard-rspec
104
- requirement: &70182756387260 !ruby/object:Gem::Requirement
104
+ requirement: &70249315715400 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70182756387260
112
+ version_requirements: *70249315715400
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: guard-spork
115
- requirement: &70182756386240 !ruby/object:Gem::Requirement
115
+ requirement: &70249315714540 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70182756386240
123
+ version_requirements: *70249315714540
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: factory_girl_rails
126
- requirement: &70182756385320 !ruby/object:Gem::Requirement
126
+ requirement: &70249315713980 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70182756385320
134
+ version_requirements: *70249315713980
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: simplecov
137
- requirement: &70182756384640 !ruby/object:Gem::Requirement
137
+ requirement: &70249315713440 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70182756384640
145
+ version_requirements: *70249315713440
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: growl
148
- requirement: &70182756384120 !ruby/object:Gem::Requirement
148
+ requirement: &70249315729560 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70182756384120
156
+ version_requirements: *70249315729560
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: fakeweb
159
- requirement: &70182756383340 !ruby/object:Gem::Requirement
159
+ requirement: &70249315728720 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *70182756383340
167
+ version_requirements: *70249315728720
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: rb-fsevent
170
- requirement: &70182756398780 !ruby/object:Gem::Requirement
170
+ requirement: &70249315728040 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,7 +175,7 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *70182756398780
178
+ version_requirements: *70249315728040
179
179
  description: Allows for arbitrary permissions on arbitrary collections of objects,
180
180
  rather than system-wide role based management
181
181
  email:
@@ -232,8 +232,6 @@ files:
232
232
  - spec/dummy/db/migrate/20111114184712_create_things.rb
233
233
  - spec/dummy/db/migrate/20111114184731_create_widgets.rb
234
234
  - spec/dummy/db/schema.rb
235
- - spec/dummy/log/development.log
236
- - spec/dummy/log/test.log
237
235
  - spec/dummy/public/404.html
238
236
  - spec/dummy/public/422.html
239
237
  - spec/dummy/public/500.html
@@ -312,8 +310,6 @@ test_files:
312
310
  - spec/dummy/db/migrate/20111114184712_create_things.rb
313
311
  - spec/dummy/db/migrate/20111114184731_create_widgets.rb
314
312
  - spec/dummy/db/schema.rb
315
- - spec/dummy/log/development.log
316
- - spec/dummy/log/test.log
317
313
  - spec/dummy/public/404.html
318
314
  - spec/dummy/public/422.html
319
315
  - spec/dummy/public/500.html
@@ -1,270 +0,0 @@
1
-  (16.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
-  (0.1ms) SHOW search_path
3
-  (2.1ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
4
- FROM pg_class t
5
- INNER JOIN pg_index d ON t.oid = d.indrelid
6
- INNER JOIN pg_class i ON d.indexrelid = i.oid
7
- WHERE i.relkind = 'i'
8
- AND d.indisprimary = 'f'
9
- AND t.relname = 'schema_migrations'
10
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
11
- ORDER BY i.relname
12
- 
13
-  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
15
- Migrating to CreateUsers (20111114184611)
16
-  (0.1ms) BEGIN
17
-  (4.4ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
18
-  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184611')
19
-  (0.7ms) COMMIT
20
- Migrating to CreateAdmins (20111114184654)
21
-  (0.1ms) BEGIN
22
-  (3.9ms) CREATE TABLE "admins" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
23
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184654')
24
-  (0.9ms) COMMIT
25
- Migrating to CreateThings (20111114184712)
26
-  (0.2ms) BEGIN
27
-  (3.5ms) CREATE TABLE "things" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
28
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184712')
29
-  (0.5ms) COMMIT
30
- Migrating to CreateWidgets (20111114184731)
31
-  (0.2ms) BEGIN
32
-  (5.2ms) CREATE TABLE "widgets" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
33
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184731')
34
-  (0.7ms) COMMIT
35
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
36
-  (1.2ms) SHOW search_path
37
-  (2.4ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
38
- FROM pg_class t
39
- INNER JOIN pg_index d ON t.oid = d.indrelid
40
- INNER JOIN pg_class i ON d.indexrelid = i.oid
41
- WHERE i.relkind = 'i'
42
- AND d.indisprimary = 'f'
43
- AND t.relname = 'admins'
44
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
45
- ORDER BY i.relname
46
-  (1.3ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
47
- FROM pg_class t
48
- INNER JOIN pg_index d ON t.oid = d.indrelid
49
- INNER JOIN pg_class i ON d.indexrelid = i.oid
50
- WHERE i.relkind = 'i'
51
- AND d.indisprimary = 'f'
52
- AND t.relname = 'things'
53
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
54
- ORDER BY i.relname
55
- 
56
-  (0.8ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
57
- FROM pg_class t
58
- INNER JOIN pg_index d ON t.oid = d.indrelid
59
- INNER JOIN pg_class i ON d.indexrelid = i.oid
60
- WHERE i.relkind = 'i'
61
- AND d.indisprimary = 'f'
62
- AND t.relname = 'users'
63
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
64
- ORDER BY i.relname
65
-  (0.9ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
66
- FROM pg_class t
67
- INNER JOIN pg_index d ON t.oid = d.indrelid
68
- INNER JOIN pg_class i ON d.indexrelid = i.oid
69
- WHERE i.relkind = 'i'
70
- AND d.indisprimary = 'f'
71
- AND t.relname = 'widgets'
72
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
73
- ORDER BY i.relname
74
- 
75
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
76
-  (0.2ms) SET search_path TO public
77
-  (5039.1ms) DROP DATABASE IF EXISTS "acts_permissive_test"
78
- PG::Error: ERROR: database "acts_permissive_test" is being accessed by other users
79
- DETAIL: There are 1 other session(s) using the database.
80
- : DROP DATABASE IF EXISTS "acts_permissive_test"
81
-  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
82
-  (0.2ms) SHOW search_path
83
-  (2.5ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
84
- FROM pg_class t
85
- INNER JOIN pg_index d ON t.oid = d.indrelid
86
- INNER JOIN pg_class i ON d.indexrelid = i.oid
87
- WHERE i.relkind = 'i'
88
- AND d.indisprimary = 'f'
89
- AND t.relname = 'schema_migrations'
90
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
91
- ORDER BY i.relname
92
- 
93
-  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
94
-  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
95
- Migrating to CreateUsers (20111114184611)
96
-  (0.1ms) BEGIN
97
-  (4.5ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
98
-  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184611')
99
-  (1.4ms) COMMIT
100
- Migrating to CreateAdmins (20111114184654)
101
-  (0.2ms) BEGIN
102
-  (4.4ms) CREATE TABLE "admins" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
103
-  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184654')
104
-  (0.8ms) COMMIT
105
- Migrating to CreateThings (20111114184712)
106
-  (0.2ms) BEGIN
107
-  (5.4ms) CREATE TABLE "things" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
108
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184712')
109
-  (0.6ms) COMMIT
110
- Migrating to CreateWidgets (20111114184731)
111
-  (0.2ms) BEGIN
112
-  (7.6ms) CREATE TABLE "widgets" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
113
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20111114184731')
114
-  (1.4ms) COMMIT
115
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
116
-  (0.2ms) SHOW search_path
117
-  (2.6ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
118
- FROM pg_class t
119
- INNER JOIN pg_index d ON t.oid = d.indrelid
120
- INNER JOIN pg_class i ON d.indexrelid = i.oid
121
- WHERE i.relkind = 'i'
122
- AND d.indisprimary = 'f'
123
- AND t.relname = 'admins'
124
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
125
- ORDER BY i.relname
126
-  (1.6ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
127
- FROM pg_class t
128
- INNER JOIN pg_index d ON t.oid = d.indrelid
129
- INNER JOIN pg_class i ON d.indexrelid = i.oid
130
- WHERE i.relkind = 'i'
131
- AND d.indisprimary = 'f'
132
- AND t.relname = 'things'
133
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
134
- ORDER BY i.relname
135
- 
136
-  (1.6ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
137
- FROM pg_class t
138
- INNER JOIN pg_index d ON t.oid = d.indrelid
139
- INNER JOIN pg_class i ON d.indexrelid = i.oid
140
- WHERE i.relkind = 'i'
141
- AND d.indisprimary = 'f'
142
- AND t.relname = 'users'
143
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
144
- ORDER BY i.relname
145
-  (2.5ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
146
- FROM pg_class t
147
- INNER JOIN pg_index d ON t.oid = d.indrelid
148
- INNER JOIN pg_class i ON d.indexrelid = i.oid
149
- WHERE i.relkind = 'i'
150
- AND d.indisprimary = 'f'
151
- AND t.relname = 'widgets'
152
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
153
- ORDER BY i.relname
154
- 
155
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
156
-  (0.2ms) SET search_path TO public
157
-  (564.9ms) DROP DATABASE IF EXISTS "acts_permissive_test"
158
-  (0.1ms) SET search_path TO public
159
-  (304.6ms) CREATE DATABASE "acts_permissive_test" ENCODING = 'utf8'
160
-  (11.0ms) CREATE TABLE "admins" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp)
161
-  (5.2ms) CREATE TABLE "things" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
162
-  (4.9ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp)
163
-  (4.5ms) CREATE TABLE "widgets" ("id" serial primary key, "name" character varying(255), "guid" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
164
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
165
-  (0.1ms) SHOW search_path
166
-  (2.9ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
167
- FROM pg_class t
168
- INNER JOIN pg_index d ON t.oid = d.indrelid
169
- INNER JOIN pg_class i ON d.indexrelid = i.oid
170
- WHERE i.relkind = 'i'
171
- AND d.indisprimary = 'f'
172
- AND t.relname = 'schema_migrations'
173
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
174
- ORDER BY i.relname
175
-  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
176
-  (0.4ms) SELECT version FROM "schema_migrations"
177
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20111114184731')
178
-  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111114184611')
179
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111114184654')
180
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111114184712')
181
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
182
- Migrating to CreateUsers (20111114184611)
183
- Migrating to CreateAdmins (20111114184654)
184
- Migrating to CreateThings (20111114184712)
185
- Migrating to CreateWidgets (20111114184731)
186
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
187
-  (0.2ms) SHOW search_path
188
-  (3.0ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
189
- FROM pg_class t
190
- INNER JOIN pg_index d ON t.oid = d.indrelid
191
- INNER JOIN pg_class i ON d.indexrelid = i.oid
192
- WHERE i.relkind = 'i'
193
- AND d.indisprimary = 'f'
194
- AND t.relname = 'admins'
195
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
196
- ORDER BY i.relname
197
-  (1.2ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
198
- FROM pg_class t
199
- INNER JOIN pg_index d ON t.oid = d.indrelid
200
- INNER JOIN pg_class i ON d.indexrelid = i.oid
201
- WHERE i.relkind = 'i'
202
- AND d.indisprimary = 'f'
203
- AND t.relname = 'things'
204
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
205
- ORDER BY i.relname
206
- 
207
-  (0.8ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
208
- FROM pg_class t
209
- INNER JOIN pg_index d ON t.oid = d.indrelid
210
- INNER JOIN pg_class i ON d.indexrelid = i.oid
211
- WHERE i.relkind = 'i'
212
- AND d.indisprimary = 'f'
213
- AND t.relname = 'users'
214
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
215
- ORDER BY i.relname
216
-  (0.8ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
217
- FROM pg_class t
218
- INNER JOIN pg_index d ON t.oid = d.indrelid
219
- INNER JOIN pg_class i ON d.indexrelid = i.oid
220
- WHERE i.relkind = 'i'
221
- AND d.indisprimary = 'f'
222
- AND t.relname = 'widgets'
223
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
224
- ORDER BY i.relname
225
- 
226
-  (42.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
227
- Migrating to CreateUsers (20111114184611)
228
- Migrating to CreateAdmins (20111114184654)
229
- Migrating to CreateThings (20111114184712)
230
- Migrating to CreateWidgets (20111114184731)
231
-  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
232
-  (0.1ms) SHOW search_path
233
-  (3.1ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
234
- FROM pg_class t
235
- INNER JOIN pg_index d ON t.oid = d.indrelid
236
- INNER JOIN pg_class i ON d.indexrelid = i.oid
237
- WHERE i.relkind = 'i'
238
- AND d.indisprimary = 'f'
239
- AND t.relname = 'admins'
240
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
241
- ORDER BY i.relname
242
-  (1.4ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
243
- FROM pg_class t
244
- INNER JOIN pg_index d ON t.oid = d.indrelid
245
- INNER JOIN pg_class i ON d.indexrelid = i.oid
246
- WHERE i.relkind = 'i'
247
- AND d.indisprimary = 'f'
248
- AND t.relname = 'things'
249
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
250
- ORDER BY i.relname
251
- 
252
-  (1.4ms) SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
253
- FROM pg_class t
254
- INNER JOIN pg_index d ON t.oid = d.indrelid
255
- INNER JOIN pg_class i ON d.indexrelid = i.oid
256
- WHERE i.relkind = 'i'
257
- AND d.indisprimary = 'f'
258
- AND t.relname = 'users'
259
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
260
- ORDER BY i.relname
261
-  (1.4ms)  SELECT distinct i.relname, d.indisunique, d.indkey, t.oid
262
- FROM pg_class t
263
- INNER JOIN pg_index d ON t.oid = d.indrelid
264
- INNER JOIN pg_class i ON d.indexrelid = i.oid
265
- WHERE i.relkind = 'i'
266
- AND d.indisprimary = 'f'
267
- AND t.relname = 'widgets'
268
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname IN ('"$user"','public') )
269
- ORDER BY i.relname
270
- 
Binary file