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.
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.3
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: 2012-03-19 00:00:00.000000000Z
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/tasks/magick_columns_tasks.rake
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/magick_columns/locales/es.yml
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/log/test.log
91
- - test/dummy/log/development.log
92
- - test/dummy/config/boot.rb
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/initializers/backtrace_silencers.rb
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/routes.rb
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/environment.rb
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/unit/person_test.rb
119
- - test/dummy/test/unit/article_test.rb
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: 1.8.19
136
+ rubygems_version: 2.0.3
152
137
  signing_key:
153
- specification_version: 3
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/log/test.log
164
- - test/dummy/log/development.log
165
- - test/dummy/config/boot.rb
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/initializers/backtrace_silencers.rb
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/routes.rb
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/environment.rb
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/unit/person_test.rb
192
- - test/dummy/test/unit/article_test.rb
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
-  (364.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
-  (103.2ms) 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
-  (95.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
14
- Migrating to CreatePeople (20120312175303)
15
-  (0.2ms) BEGIN
16
-  (369.7ms) 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
-  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120312175303')
18
-  (22.5ms) COMMIT
19
- Migrating to CreateArticles (20120312175442)
20
-  (0.3ms) BEGIN
21
-  (65.6ms) CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22
-  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120312175442')
23
-  (16.7ms) COMMIT
24
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
25
- PK and serial sequence (3.3ms) 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
-  (4.2ms)  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
- 
50
- PK and serial sequence (9.2ms) 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
-  (2.2ms)  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
- 
75
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
76
-  (0.2ms) SET search_path TO public
77
-  (1183.5ms) DROP DATABASE IF EXISTS "dummy_test"
78
-  (0.3ms) SET search_path TO public
79
-  (1293.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
80
-  (172.6ms) CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
81
-  (143.0ms) 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) 
82
-  (10.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
83
-  (5.0ms)  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
- 
93
-  (127.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
94
-  (0.6ms) SELECT version FROM "schema_migrations"
95
-  (8.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
96
-  (10.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175303')
97
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
98
-  (0.2ms) SET search_path TO public
99
-  (271.7ms) DROP DATABASE IF EXISTS "dummy_test"
100
-  (0.2ms) SET search_path TO public
101
-  (2627.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
102
-  (204.6ms) CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
103
-  (152.3ms) 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) 
104
-  (22.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
105
-  (5.0ms)  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
- 
115
-  (60.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
116
-  (0.5ms) SELECT version FROM "schema_migrations"
117
-  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
118
-  (10.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175303')
119
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
120
-  (0.1ms) SET search_path TO public
121
-  (222.3ms) DROP DATABASE IF EXISTS "dummy_test"
122
-  (0.2ms) SET search_path TO public
123
-  (884.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
124
-  (145.9ms) CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
125
-  (276.6ms) 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) 
126
-  (100.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
127
-  (145.3ms)  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
- 
137
-  (255.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
138
-  (0.7ms) SELECT version FROM "schema_migrations"
139
-  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
140
-  (52.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175303')
141
-  (42.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL;ALTER TABLE "articles" DISABLE TRIGGER ALL
142
-  (0.2ms) BEGIN
143
- Fixture Delete (0.6ms) DELETE FROM "articles"
144
- Fixture Insert (26.6ms) 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
- Fixture Insert (0.3ms) INSERT 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)
146
- PK and serial sequence (2.2ms) 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
- Reset sequence (181.0ms)  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
- 
163
-  (37.0ms) COMMIT
164
-  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL;ALTER TABLE "articles" ENABLE TRIGGER ALL
165
-  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL;ALTER TABLE "articles" DISABLE TRIGGER ALL
166
-  (0.2ms) BEGIN
167
- Fixture Delete (0.4ms) DELETE FROM "people"
168
- Fixture Insert (13.9ms) INSERT 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)
169
- Fixture Insert (0.3ms) 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
- Fixture Insert (0.3ms) INSERT 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)
171
- PK and serial sequence (2.1ms) 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
- Reset sequence (12.5ms)  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
- 
188
-  (15.0ms) COMMIT
189
-  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL;ALTER TABLE "articles" ENABLE TRIGGER ALL
190
-  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
191
-  (0.2ms) SET search_path TO public
192
-  (537.3ms) DROP DATABASE IF EXISTS "dummy_test"
193
-  (0.2ms) SET search_path TO public
194
-  (2217.0ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
195
-  (176.4ms) CREATE TABLE "articles" ("id" serial primary key, "name" character varying(255), "code" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
196
-  (153.9ms) 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) 
197
-  (10.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
198
-  (3.1ms)  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
- 
208
-  (85.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
209
-  (0.5ms) SELECT version FROM "schema_migrations"
210
-  (9.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175442')
211
-  (10.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120312175303')