magick_columns 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/magick_columns/version.rb +1 -1
- data/test/dummy/log/test.log +131 -2968
- metadata +74 -90
- data/test/dummy/log/development.log +0 -211
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magick_columns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Franco Catena
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '3.2'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '3.2'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: timeliness
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0.3'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0.3'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: pg
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description: Tokenize a simple strings and builds an ActiveRecord query
|
@@ -66,132 +59,123 @@ executables: []
|
|
66
59
|
extensions: []
|
67
60
|
extra_rdoc_files: []
|
68
61
|
files:
|
69
|
-
- lib/
|
70
|
-
- lib/magick_columns/railtie.rb
|
71
|
-
- lib/magick_columns/rules.rb
|
72
|
-
- lib/magick_columns/i18n.rb
|
62
|
+
- lib/magick_columns.rb
|
73
63
|
- lib/magick_columns/active_record.rb
|
74
64
|
- lib/magick_columns/defaults.rb
|
65
|
+
- lib/magick_columns/i18n.rb
|
66
|
+
- lib/magick_columns/locales/en.yml
|
67
|
+
- lib/magick_columns/locales/es.yml
|
68
|
+
- lib/magick_columns/railtie.rb
|
69
|
+
- lib/magick_columns/rules.rb
|
75
70
|
- lib/magick_columns/tokenizer.rb
|
76
71
|
- lib/magick_columns/version.rb
|
77
|
-
- lib/
|
78
|
-
- lib/magick_columns/locales/en.yml
|
79
|
-
- lib/magick_columns.rb
|
72
|
+
- lib/tasks/magick_columns_tasks.rake
|
80
73
|
- MIT-LICENSE
|
81
74
|
- Rakefile
|
82
75
|
- README.md
|
83
|
-
- test/dummy/Rakefile
|
84
|
-
- test/dummy/script/rails
|
85
|
-
- test/dummy/public/500.html
|
86
|
-
- test/dummy/public/422.html
|
87
|
-
- test/dummy/public/404.html
|
88
|
-
- test/dummy/public/favicon.ico
|
89
76
|
- test/dummy/README.rdoc
|
90
|
-
- test/dummy/
|
91
|
-
- test/dummy/
|
92
|
-
- test/dummy/
|
77
|
+
- test/dummy/Rakefile
|
78
|
+
- test/dummy/app/assets/javascripts/application.js
|
79
|
+
- test/dummy/app/assets/stylesheets/application.css
|
80
|
+
- test/dummy/app/controllers/application_controller.rb
|
81
|
+
- test/dummy/app/helpers/application_helper.rb
|
82
|
+
- test/dummy/app/models/article.rb
|
83
|
+
- test/dummy/app/models/person.rb
|
84
|
+
- test/dummy/app/views/layouts/application.html.erb
|
85
|
+
- test/dummy/config.ru
|
93
86
|
- test/dummy/config/application.rb
|
94
|
-
- test/dummy/config/
|
95
|
-
- test/dummy/config/initializers/inflections.rb
|
96
|
-
- test/dummy/config/initializers/session_store.rb
|
97
|
-
- test/dummy/config/initializers/secret_token.rb
|
98
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
99
|
-
- test/dummy/config/initializers/mime_types.rb
|
87
|
+
- test/dummy/config/boot.rb
|
100
88
|
- test/dummy/config/database.yml
|
101
|
-
- test/dummy/config/
|
89
|
+
- test/dummy/config/environment.rb
|
102
90
|
- test/dummy/config/environments/development.rb
|
103
91
|
- test/dummy/config/environments/production.rb
|
104
92
|
- test/dummy/config/environments/test.rb
|
93
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
94
|
+
- test/dummy/config/initializers/inflections.rb
|
95
|
+
- test/dummy/config/initializers/mime_types.rb
|
96
|
+
- test/dummy/config/initializers/secret_token.rb
|
97
|
+
- test/dummy/config/initializers/session_store.rb
|
98
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
105
99
|
- test/dummy/config/locales/en.yml
|
106
|
-
- test/dummy/config/
|
107
|
-
- test/dummy/app/assets/stylesheets/application.css
|
108
|
-
- test/dummy/app/assets/javascripts/application.js
|
109
|
-
- test/dummy/app/views/layouts/application.html.erb
|
110
|
-
- test/dummy/app/controllers/application_controller.rb
|
111
|
-
- test/dummy/app/models/article.rb
|
112
|
-
- test/dummy/app/models/person.rb
|
113
|
-
- test/dummy/app/helpers/application_helper.rb
|
114
|
-
- test/dummy/config.ru
|
115
|
-
- test/dummy/db/migrate/20120312175442_create_articles.rb
|
100
|
+
- test/dummy/config/routes.rb
|
116
101
|
- test/dummy/db/migrate/20120312175303_create_people.rb
|
102
|
+
- test/dummy/db/migrate/20120312175442_create_articles.rb
|
117
103
|
- test/dummy/db/schema.rb
|
118
|
-
- test/dummy/test
|
119
|
-
- test/dummy/
|
104
|
+
- test/dummy/log/test.log
|
105
|
+
- test/dummy/public/404.html
|
106
|
+
- test/dummy/public/422.html
|
107
|
+
- test/dummy/public/500.html
|
108
|
+
- test/dummy/public/favicon.ico
|
109
|
+
- test/dummy/script/rails
|
120
110
|
- test/dummy/test/fixtures/articles.yml
|
121
111
|
- test/dummy/test/fixtures/people.yml
|
112
|
+
- test/dummy/test/unit/article_test.rb
|
113
|
+
- test/dummy/test/unit/person_test.rb
|
122
114
|
- test/magick_columns_test.rb
|
123
115
|
- test/test_helper.rb
|
124
116
|
- test/tokenizer_test.rb
|
125
117
|
homepage: http://github.com/francocatena/magick_columns
|
126
118
|
licenses: []
|
119
|
+
metadata: {}
|
127
120
|
post_install_message:
|
128
121
|
rdoc_options: []
|
129
122
|
require_paths:
|
130
123
|
- lib
|
131
124
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
125
|
requirements:
|
134
|
-
- -
|
126
|
+
- - '>='
|
135
127
|
- !ruby/object:Gem::Version
|
136
128
|
version: '0'
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
hash: -419900903376102177
|
140
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
-
none: false
|
142
130
|
requirements:
|
143
|
-
- -
|
131
|
+
- - '>='
|
144
132
|
- !ruby/object:Gem::Version
|
145
133
|
version: '0'
|
146
|
-
segments:
|
147
|
-
- 0
|
148
|
-
hash: -419900903376102177
|
149
134
|
requirements: []
|
150
135
|
rubyforge_project:
|
151
|
-
rubygems_version:
|
136
|
+
rubygems_version: 2.0.3
|
152
137
|
signing_key:
|
153
|
-
specification_version:
|
138
|
+
specification_version: 4
|
154
139
|
summary: Build query conditions from simple strings
|
155
140
|
test_files:
|
156
|
-
- test/dummy/Rakefile
|
157
|
-
- test/dummy/script/rails
|
158
|
-
- test/dummy/public/500.html
|
159
|
-
- test/dummy/public/422.html
|
160
|
-
- test/dummy/public/404.html
|
161
|
-
- test/dummy/public/favicon.ico
|
162
141
|
- test/dummy/README.rdoc
|
163
|
-
- test/dummy/
|
164
|
-
- test/dummy/
|
165
|
-
- test/dummy/
|
142
|
+
- test/dummy/Rakefile
|
143
|
+
- test/dummy/app/assets/javascripts/application.js
|
144
|
+
- test/dummy/app/assets/stylesheets/application.css
|
145
|
+
- test/dummy/app/controllers/application_controller.rb
|
146
|
+
- test/dummy/app/helpers/application_helper.rb
|
147
|
+
- test/dummy/app/models/article.rb
|
148
|
+
- test/dummy/app/models/person.rb
|
149
|
+
- test/dummy/app/views/layouts/application.html.erb
|
150
|
+
- test/dummy/config.ru
|
166
151
|
- test/dummy/config/application.rb
|
167
|
-
- test/dummy/config/
|
168
|
-
- test/dummy/config/initializers/inflections.rb
|
169
|
-
- test/dummy/config/initializers/session_store.rb
|
170
|
-
- test/dummy/config/initializers/secret_token.rb
|
171
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
172
|
-
- test/dummy/config/initializers/mime_types.rb
|
152
|
+
- test/dummy/config/boot.rb
|
173
153
|
- test/dummy/config/database.yml
|
174
|
-
- test/dummy/config/
|
154
|
+
- test/dummy/config/environment.rb
|
175
155
|
- test/dummy/config/environments/development.rb
|
176
156
|
- test/dummy/config/environments/production.rb
|
177
157
|
- test/dummy/config/environments/test.rb
|
158
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
159
|
+
- test/dummy/config/initializers/inflections.rb
|
160
|
+
- test/dummy/config/initializers/mime_types.rb
|
161
|
+
- test/dummy/config/initializers/secret_token.rb
|
162
|
+
- test/dummy/config/initializers/session_store.rb
|
163
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
178
164
|
- test/dummy/config/locales/en.yml
|
179
|
-
- test/dummy/config/
|
180
|
-
- test/dummy/app/assets/stylesheets/application.css
|
181
|
-
- test/dummy/app/assets/javascripts/application.js
|
182
|
-
- test/dummy/app/views/layouts/application.html.erb
|
183
|
-
- test/dummy/app/controllers/application_controller.rb
|
184
|
-
- test/dummy/app/models/article.rb
|
185
|
-
- test/dummy/app/models/person.rb
|
186
|
-
- test/dummy/app/helpers/application_helper.rb
|
187
|
-
- test/dummy/config.ru
|
188
|
-
- test/dummy/db/migrate/20120312175442_create_articles.rb
|
165
|
+
- test/dummy/config/routes.rb
|
189
166
|
- test/dummy/db/migrate/20120312175303_create_people.rb
|
167
|
+
- test/dummy/db/migrate/20120312175442_create_articles.rb
|
190
168
|
- test/dummy/db/schema.rb
|
191
|
-
- test/dummy/test
|
192
|
-
- test/dummy/
|
169
|
+
- test/dummy/log/test.log
|
170
|
+
- test/dummy/public/404.html
|
171
|
+
- test/dummy/public/422.html
|
172
|
+
- test/dummy/public/500.html
|
173
|
+
- test/dummy/public/favicon.ico
|
174
|
+
- test/dummy/script/rails
|
193
175
|
- test/dummy/test/fixtures/articles.yml
|
194
176
|
- test/dummy/test/fixtures/people.yml
|
177
|
+
- test/dummy/test/unit/article_test.rb
|
178
|
+
- test/dummy/test/unit/person_test.rb
|
195
179
|
- test/magick_columns_test.rb
|
196
180
|
- test/test_helper.rb
|
197
181
|
- test/tokenizer_test.rb
|
@@ -1,211 +0,0 @@
|
|
1
|
-
[1m[36m (364.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2
|
-
[1m[35m (103.2ms)[0m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
3
|
-
FROM pg_class t
|
4
|
-
INNER JOIN pg_index d ON t.oid = d.indrelid
|
5
|
-
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
6
|
-
WHERE i.relkind = 'i'
|
7
|
-
AND d.indisprimary = 'f'
|
8
|
-
AND t.relname = 'schema_migrations'
|
9
|
-
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
10
|
-
ORDER BY i.relname
|
11
|
-
|
12
|
-
[1m[36m (95.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
13
|
-
[1m[35m (0.6ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
14
|
-
Migrating to CreatePeople (20120312175303)
|
15
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16
|
-
[1m[35m (369.7ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "email" character varying(255), "birth" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
17
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120312175303')[0m
|
18
|
-
[1m[35m (22.5ms)[0m COMMIT
|
19
|
-
Migrating to CreateArticles (20120312175442)
|
20
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
21
|
-
[1m[35m (65.6ms)[0m CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
22
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20120312175442')[0m
|
23
|
-
[1m[35m (16.7ms)[0m COMMIT
|
24
|
-
[1m[36m (0.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
25
|
-
[1m[35mPK and serial sequence (3.3ms)[0m SELECT attr.attname, seq.relname
|
26
|
-
FROM pg_class seq,
|
27
|
-
pg_attribute attr,
|
28
|
-
pg_depend dep,
|
29
|
-
pg_namespace name,
|
30
|
-
pg_constraint cons
|
31
|
-
WHERE seq.oid = dep.objid
|
32
|
-
AND seq.relkind = 'S'
|
33
|
-
AND attr.attrelid = dep.refobjid
|
34
|
-
AND attr.attnum = dep.refobjsubid
|
35
|
-
AND attr.attrelid = cons.conrelid
|
36
|
-
AND attr.attnum = cons.conkey[1]
|
37
|
-
AND cons.contype = 'p'
|
38
|
-
AND dep.refobjid = '"articles"'::regclass
|
39
|
-
|
40
|
-
[1m[36m (4.2ms)[0m [1m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
41
|
-
FROM pg_class t
|
42
|
-
INNER JOIN pg_index d ON t.oid = d.indrelid
|
43
|
-
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
44
|
-
WHERE i.relkind = 'i'
|
45
|
-
AND d.indisprimary = 'f'
|
46
|
-
AND t.relname = 'articles'
|
47
|
-
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
48
|
-
ORDER BY i.relname
|
49
|
-
[0m
|
50
|
-
[1m[35mPK and serial sequence (9.2ms)[0m SELECT attr.attname, seq.relname
|
51
|
-
FROM pg_class seq,
|
52
|
-
pg_attribute attr,
|
53
|
-
pg_depend dep,
|
54
|
-
pg_namespace name,
|
55
|
-
pg_constraint cons
|
56
|
-
WHERE seq.oid = dep.objid
|
57
|
-
AND seq.relkind = 'S'
|
58
|
-
AND attr.attrelid = dep.refobjid
|
59
|
-
AND attr.attnum = dep.refobjsubid
|
60
|
-
AND attr.attrelid = cons.conrelid
|
61
|
-
AND attr.attnum = cons.conkey[1]
|
62
|
-
AND cons.contype = 'p'
|
63
|
-
AND dep.refobjid = '"people"'::regclass
|
64
|
-
|
65
|
-
[1m[36m (2.2ms)[0m [1m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), 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 = 'people'
|
72
|
-
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
73
|
-
ORDER BY i.relname
|
74
|
-
[0m
|
75
|
-
[1m[36m (0.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
76
|
-
[1m[35m (0.2ms)[0m SET search_path TO public
|
77
|
-
[1m[36m (1183.5ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
78
|
-
[1m[35m (0.3ms)[0m SET search_path TO public
|
79
|
-
[1m[36m (1293.1ms)[0m [1mCREATE DATABASE "dummy_test" ENCODING = 'unicode'[0m
|
80
|
-
[1m[35m (172.6ms)[0m CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
81
|
-
[1m[36m (143.0ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "email" character varying(255), "birth" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
82
|
-
[1m[35m (10.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
83
|
-
[1m[36m (5.0ms)[0m [1m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), 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 = ANY (current_schemas(false)) )
|
91
|
-
ORDER BY i.relname
|
92
|
-
[0m
|
93
|
-
[1m[35m (127.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
94
|
-
[1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
95
|
-
[1m[35m (8.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
|
96
|
-
[1m[36m (10.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120312175303')[0m
|
97
|
-
[1m[36m (0.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
98
|
-
[1m[35m (0.2ms)[0m SET search_path TO public
|
99
|
-
[1m[36m (271.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
100
|
-
[1m[35m (0.2ms)[0m SET search_path TO public
|
101
|
-
[1m[36m (2627.3ms)[0m [1mCREATE DATABASE "dummy_test" ENCODING = 'unicode'[0m
|
102
|
-
[1m[35m (204.6ms)[0m CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
103
|
-
[1m[36m (152.3ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "email" character varying(255), "birth" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
104
|
-
[1m[35m (22.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
105
|
-
[1m[36m (5.0ms)[0m [1m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
106
|
-
FROM pg_class t
|
107
|
-
INNER JOIN pg_index d ON t.oid = d.indrelid
|
108
|
-
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
109
|
-
WHERE i.relkind = 'i'
|
110
|
-
AND d.indisprimary = 'f'
|
111
|
-
AND t.relname = 'schema_migrations'
|
112
|
-
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
113
|
-
ORDER BY i.relname
|
114
|
-
[0m
|
115
|
-
[1m[35m (60.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
116
|
-
[1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
117
|
-
[1m[35m (3.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
|
118
|
-
[1m[36m (10.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120312175303')[0m
|
119
|
-
[1m[36m (0.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
120
|
-
[1m[35m (0.1ms)[0m SET search_path TO public
|
121
|
-
[1m[36m (222.3ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
122
|
-
[1m[35m (0.2ms)[0m SET search_path TO public
|
123
|
-
[1m[36m (884.3ms)[0m [1mCREATE DATABASE "dummy_test" ENCODING = 'unicode'[0m
|
124
|
-
[1m[35m (145.9ms)[0m CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
125
|
-
[1m[36m (276.6ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "email" character varying(255), "birth" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
126
|
-
[1m[35m (100.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
127
|
-
[1m[36m (145.3ms)[0m [1m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
128
|
-
FROM pg_class t
|
129
|
-
INNER JOIN pg_index d ON t.oid = d.indrelid
|
130
|
-
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
131
|
-
WHERE i.relkind = 'i'
|
132
|
-
AND d.indisprimary = 'f'
|
133
|
-
AND t.relname = 'schema_migrations'
|
134
|
-
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
135
|
-
ORDER BY i.relname
|
136
|
-
[0m
|
137
|
-
[1m[35m (255.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
138
|
-
[1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
139
|
-
[1m[35m (74.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
|
140
|
-
[1m[36m (52.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120312175303')[0m
|
141
|
-
[1m[36m (42.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL;ALTER TABLE "articles" DISABLE TRIGGER ALL[0m
|
142
|
-
[1m[35m (0.2ms)[0m BEGIN
|
143
|
-
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "articles"[0m
|
144
|
-
[1m[35mFixture Insert (26.6ms)[0m INSERT INTO "articles" ("name", "code", "created_at", "updated_at", "id") VALUES ('Lightsaber', 1, '2012-03-15 17:41:34', '2012-03-15 17:41:34', 980403528)
|
145
|
-
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "articles" ("name", "code", "created_at", "updated_at", "id") VALUES ('Ship', 2, '2012-03-15 17:41:34', '2012-03-15 17:41:34', 976284455)[0m
|
146
|
-
[1m[35mPK and serial sequence (2.2ms)[0m SELECT attr.attname, seq.relname
|
147
|
-
FROM pg_class seq,
|
148
|
-
pg_attribute attr,
|
149
|
-
pg_depend dep,
|
150
|
-
pg_namespace name,
|
151
|
-
pg_constraint cons
|
152
|
-
WHERE seq.oid = dep.objid
|
153
|
-
AND seq.relkind = 'S'
|
154
|
-
AND attr.attrelid = dep.refobjid
|
155
|
-
AND attr.attnum = dep.refobjsubid
|
156
|
-
AND attr.attrelid = cons.conrelid
|
157
|
-
AND attr.attnum = cons.conkey[1]
|
158
|
-
AND cons.contype = 'p'
|
159
|
-
AND dep.refobjid = '"articles"'::regclass
|
160
|
-
|
161
|
-
[1m[36mReset sequence (181.0ms)[0m [1m SELECT setval('"articles_id_seq"', (SELECT COALESCE(MAX("id")+(SELECT increment_by FROM "articles_id_seq"), (SELECT min_value FROM "articles_id_seq")) FROM "articles"), false)
|
162
|
-
[0m
|
163
|
-
[1m[35m (37.0ms)[0m COMMIT
|
164
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL;ALTER TABLE "articles" ENABLE TRIGGER ALL[0m
|
165
|
-
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL;ALTER TABLE "articles" DISABLE TRIGGER ALL
|
166
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
167
|
-
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "people"
|
168
|
-
[1m[36mFixture Insert (13.9ms)[0m [1mINSERT INTO "people" ("name", "email", "birth", "created_at", "updated_at", "id") VALUES ('Obi-Wan Kenobi', 'obi@sw.com', '3012-03-15', '2012-03-15 17:41:35', '2012-03-15 17:41:35', 632303495)[0m
|
169
|
-
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "people" ("name", "email", "birth", "created_at", "updated_at", "id") VALUES ('Luke Skywalker', 'luke@sw.com', '3052-03-15', '2012-03-15 17:41:35', '2012-03-15 17:41:35', 962534057)
|
170
|
-
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "people" ("name", "email", "birth", "created_at", "updated_at", "id") VALUES ('Anakin Skywalker', 'anakin@sw.com', '3032-03-15', '2012-03-15 17:41:35', '2012-03-15 17:41:35', 222665832)[0m
|
171
|
-
[1m[35mPK and serial sequence (2.1ms)[0m SELECT attr.attname, seq.relname
|
172
|
-
FROM pg_class seq,
|
173
|
-
pg_attribute attr,
|
174
|
-
pg_depend dep,
|
175
|
-
pg_namespace name,
|
176
|
-
pg_constraint cons
|
177
|
-
WHERE seq.oid = dep.objid
|
178
|
-
AND seq.relkind = 'S'
|
179
|
-
AND attr.attrelid = dep.refobjid
|
180
|
-
AND attr.attnum = dep.refobjsubid
|
181
|
-
AND attr.attrelid = cons.conrelid
|
182
|
-
AND attr.attnum = cons.conkey[1]
|
183
|
-
AND cons.contype = 'p'
|
184
|
-
AND dep.refobjid = '"people"'::regclass
|
185
|
-
|
186
|
-
[1m[36mReset sequence (12.5ms)[0m [1m SELECT setval('"people_id_seq"', (SELECT COALESCE(MAX("id")+(SELECT increment_by FROM "people_id_seq"), (SELECT min_value FROM "people_id_seq")) FROM "people"), false)
|
187
|
-
[0m
|
188
|
-
[1m[35m (15.0ms)[0m COMMIT
|
189
|
-
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL;ALTER TABLE "articles" ENABLE TRIGGER ALL[0m
|
190
|
-
[1m[36m (0.9ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
191
|
-
[1m[35m (0.2ms)[0m SET search_path TO public
|
192
|
-
[1m[36m (537.3ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
193
|
-
[1m[35m (0.2ms)[0m SET search_path TO public
|
194
|
-
[1m[36m (2217.0ms)[0m [1mCREATE DATABASE "dummy_test" ENCODING = 'unicode'[0m
|
195
|
-
[1m[35m (176.4ms)[0m CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
196
|
-
[1m[36m (153.9ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "email" character varying(255), "birth" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
197
|
-
[1m[35m (10.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
198
|
-
[1m[36m (3.1ms)[0m [1m SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
|
199
|
-
FROM pg_class t
|
200
|
-
INNER JOIN pg_index d ON t.oid = d.indrelid
|
201
|
-
INNER JOIN pg_class i ON d.indexrelid = i.oid
|
202
|
-
WHERE i.relkind = 'i'
|
203
|
-
AND d.indisprimary = 'f'
|
204
|
-
AND t.relname = 'schema_migrations'
|
205
|
-
AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
|
206
|
-
ORDER BY i.relname
|
207
|
-
[0m
|
208
|
-
[1m[35m (85.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
209
|
-
[1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
210
|
-
[1m[35m (9.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
|
211
|
-
[1m[36m (10.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120312175303')[0m
|