pagers 4.0.0.0 → 4.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/lib/generators/pagers/install/install_generator.rb +7 -5
- data/lib/pagers/railtie.rb +14 -7
- data/lib/pagers/version.rb +1 -1
- data/test/dummy/config/database.yml +5 -2
- data/test/dummy/db/migrate/20130820024335_create_products.rb +1 -0
- data/test/dummy/log/development.log +21 -0
- data/test/dummy/log/test.log +308 -0
- data/test/generator_test.rb +1 -1
- metadata +2 -34
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/34/34l0xNON3WYrRP9HWkz5ZK9IQzIEVGYFn6VDMKiheeA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SG/SGNGr7AZfBE1q7ev2-YM1G-o0XAZ0pKqbsS3NvHtRcA.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TO/TOCwj3wVkgMFleFRO8KMLE3Qq6FsXpCeZD56U1AEPEc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJjzVvL4dd5E1S5fIpCphDLf9mEWeGfhO-ALTZpJ8-c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fG/fG_uaNK13wisQiji91xNsGecGxX9QhMCF2eSX_aR0G0.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbunrAFVOHPwl2npUgKv_C3f_qiJnZDd9zG5-h3jrpo.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mv/mvqN6PphkrOOC8zbUEhpC_9E_4ybdO25MRy_gG6dq3Y.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nm/nmcUZlKAIwyJ_35Nm9P8pukLeRX5aApP6NFj5MpNPgc.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sB/sB6xWxBmgzVC0Co9__ANYrE58lr4WPwiwFa9mswooWM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNrIny9hchHD9eIJxAicyYLC7qeV4PTh4Nh40_Y6Vg.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdBKQyhEAlDIstGvXw945PWJoEWi23rKuY7elOcWqHc.cache +0 -1
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yH/yHjEG5b89-DY37A9c_d90xiOarCQ4bJHa-i98W72DXI.cache +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f8d8be7fdafe8eb6c286047ea0191a4b09a4081
|
4
|
+
data.tar.gz: 42921c633d1624f134ef1a93cee8f82f7321053f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fb625983fc165d3b6d052caf9a7541c722206b230f12fed22f0e422265698ea02673ac3d16eb9631efed577d04a14dc388c8cb3f53b997c39dff583801ac1b7
|
7
|
+
data.tar.gz: e7ab0d3d1dae350290726b1cbec27a77e8e5aa858fa1c5c12bce37bc9764bbaee8fa10f9d32c83364d9cf7eeb74f2306c05daa364d426bd166673609af36bacd
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ I did this gem to:
|
|
13
13
|
|
14
14
|
- Simplify code by keep close integration with rails.
|
15
15
|
- Have most common used settings set out of the box.
|
16
|
-
- Create a compatible pagination for [
|
16
|
+
- Create a compatible pagination for [indexers gem](https://github.com/mmontossi/indexers).
|
17
17
|
|
18
18
|
## Install
|
19
19
|
|
@@ -80,6 +80,12 @@ search/sample/2
|
|
80
80
|
search/sample/3
|
81
81
|
```
|
82
82
|
|
83
|
+
## Contributing
|
84
|
+
|
85
|
+
Any issue, pull request, comment of any kind is more than welcome!
|
86
|
+
|
87
|
+
I will mainly ensure compatibility to PostgreSQL, AWS, Redis, Elasticsearch, FreeBSD and Memcached.
|
88
|
+
|
83
89
|
## Credits
|
84
90
|
|
85
91
|
This gem is maintained and funded by [mmontossi](https://github.com/mmontossi).
|
@@ -1,13 +1,15 @@
|
|
1
1
|
require 'rails/generators'
|
2
2
|
|
3
3
|
module Pagers
|
4
|
-
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
5
6
|
|
6
|
-
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
def create_initializer_file
|
10
|
+
copy_file 'initializer.rb', 'config/initializers/pagers.rb'
|
11
|
+
end
|
11
12
|
|
13
|
+
end
|
12
14
|
end
|
13
15
|
end
|
data/lib/pagers/railtie.rb
CHANGED
@@ -1,13 +1,20 @@
|
|
1
1
|
module Pagers
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
|
4
|
-
initializer 'pagers.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
initializer 'pagers.active_record' do
|
5
|
+
ActiveSupport.on_load :active_record do
|
6
|
+
::ActiveRecord::Base.include(
|
7
|
+
Pagers::Extensions::ActiveRecord::Base
|
8
|
+
)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
initializer 'pagers.action_view' do
|
13
|
+
ActiveSupport.on_load :action_view do
|
14
|
+
::ActionView::Base.include(
|
15
|
+
Pagers::Extensions::ActionView::Base
|
16
|
+
)
|
17
|
+
end
|
11
18
|
end
|
12
19
|
|
13
20
|
end
|
data/lib/pagers/version.rb
CHANGED
@@ -22,4 +22,25 @@ WHERE c.contype = 'f'
|
|
22
22
|
AND t1.relname = 'products'
|
23
23
|
AND t3.nspname = ANY (current_schemas(false))
|
24
24
|
ORDER BY c.conname
|
25
|
+
[0m
|
26
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
27
|
+
[1m[35m (13.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
+
Migrating to CreateProducts (20130820024335)
|
30
|
+
[1m[35m (0.2ms)[0m BEGIN
|
31
|
+
[1m[36m (7.2ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
32
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130820024335"]]
|
33
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
34
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
35
|
+
[1m[36m (2.0ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
36
|
+
FROM pg_constraint c
|
37
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
38
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
39
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
40
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
41
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
42
|
+
WHERE c.contype = 'f'
|
43
|
+
AND t1.relname = 'products'
|
44
|
+
AND t3.nspname = ANY (current_schemas(false))
|
45
|
+
ORDER BY c.conname
|
25
46
|
[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -22127,3 +22127,311 @@ RelationTest: test_padding
|
|
22127
22127
|
[1m[35m (0.2ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "products" LIMIT 15 OFFSET 34) subquery_for_count
|
22128
22128
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22129
22129
|
[1m[35m (0.1ms)[0m ROLLBACK
|
22130
|
+
[1m[36m (175.8ms)[0m [1mDROP DATABASE IF EXISTS "pagers_test"[0m
|
22131
|
+
[1m[35m (295.9ms)[0m CREATE DATABASE "pagers_test" ENCODING = 'utf8'
|
22132
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
22133
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "products" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
22134
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
22135
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
22136
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
22137
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130820024335')
|
22138
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22139
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22140
|
+
-------------------
|
22141
|
+
ViewTest: test_html
|
22142
|
+
-------------------
|
22143
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22144
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:06.920554"], ["updated_at", "2016-12-13 20:19:06.920554"]]
|
22145
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22146
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22147
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:06.924689"], ["updated_at", "2016-12-13 20:19:06.924689"]]
|
22148
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22149
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22150
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:06.925779"], ["updated_at", "2016-12-13 20:19:06.925779"]]
|
22151
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22152
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
22153
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:06.926814"], ["updated_at", "2016-12-13 20:19:06.926814"]]
|
22154
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22156
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:06.927732"], ["updated_at", "2016-12-13 20:19:06.927732"]]
|
22157
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22158
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22159
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:06.928681"], ["updated_at", "2016-12-13 20:19:06.928681"]]
|
22160
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22162
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:06.929596"], ["updated_at", "2016-12-13 20:19:06.929596"]]
|
22163
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22165
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:06.930553"], ["updated_at", "2016-12-13 20:19:06.930553"]]
|
22166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22167
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22168
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:06.931458"], ["updated_at", "2016-12-13 20:19:06.931458"]]
|
22169
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22170
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22171
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:06.932434"], ["updated_at", "2016-12-13 20:19:06.932434"]]
|
22172
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22173
|
+
Started GET "/" for 127.0.0.1 at 2016-12-13 17:19:06 -0300
|
22174
|
+
Processing by ProductsController#index as HTML
|
22175
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22176
|
+
Rendered /Users/Matt/Documents/Github/pagers/app/views/pagers/_main.html.erb (7.4ms)
|
22177
|
+
Rendered products/index.html.erb within layouts/application (13.5ms)
|
22178
|
+
Completed 200 OK in 187ms (Views: 185.9ms | ActiveRecord: 0.3ms)
|
22179
|
+
Started GET "/?page=5" for 127.0.0.1 at 2016-12-13 17:19:07 -0300
|
22180
|
+
Processing by ProductsController#index as HTML
|
22181
|
+
Parameters: {"page"=>"5"}
|
22182
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "products"
|
22183
|
+
Rendered /Users/Matt/Documents/Github/pagers/app/views/pagers/_main.html.erb (1.1ms)
|
22184
|
+
Rendered products/index.html.erb within layouts/application (2.0ms)
|
22185
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)
|
22186
|
+
Started GET "/?page=10" for 127.0.0.1 at 2016-12-13 17:19:07 -0300
|
22187
|
+
Processing by ProductsController#index as HTML
|
22188
|
+
Parameters: {"page"=>"10"}
|
22189
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22190
|
+
Rendered /Users/Matt/Documents/Github/pagers/app/views/pagers/_main.html.erb (0.8ms)
|
22191
|
+
Rendered products/index.html.erb within layouts/application (1.6ms)
|
22192
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)
|
22193
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
22194
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22195
|
+
----------------------------
|
22196
|
+
GeneratorsTest: test_install
|
22197
|
+
----------------------------
|
22198
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
22199
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22200
|
+
-------------------------
|
22201
|
+
RelationTest: test_middle
|
22202
|
+
-------------------------
|
22203
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
22204
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.195562"], ["updated_at", "2016-12-13 20:19:07.195562"]]
|
22205
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22206
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22207
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.196952"], ["updated_at", "2016-12-13 20:19:07.196952"]]
|
22208
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22209
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22210
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.198154"], ["updated_at", "2016-12-13 20:19:07.198154"]]
|
22211
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22212
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22213
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.199309"], ["updated_at", "2016-12-13 20:19:07.199309"]]
|
22214
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22215
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22216
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.200437"], ["updated_at", "2016-12-13 20:19:07.200437"]]
|
22217
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22218
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22219
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.201435"], ["updated_at", "2016-12-13 20:19:07.201435"]]
|
22220
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22221
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
22222
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.202729"], ["updated_at", "2016-12-13 20:19:07.202729"]]
|
22223
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22224
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22225
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.203900"], ["updated_at", "2016-12-13 20:19:07.203900"]]
|
22226
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22227
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22228
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.204958"], ["updated_at", "2016-12-13 20:19:07.204958"]]
|
22229
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22230
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22231
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.205938"], ["updated_at", "2016-12-13 20:19:07.205938"]]
|
22232
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22233
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "products"
|
22234
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
22235
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22236
|
+
--------------------------
|
22237
|
+
RelationTest: test_padding
|
22238
|
+
--------------------------
|
22239
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22240
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.208647"], ["updated_at", "2016-12-13 20:19:07.208647"]]
|
22241
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22242
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22243
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.210032"], ["updated_at", "2016-12-13 20:19:07.210032"]]
|
22244
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22246
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.211039"], ["updated_at", "2016-12-13 20:19:07.211039"]]
|
22247
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22248
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22249
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.212262"], ["updated_at", "2016-12-13 20:19:07.212262"]]
|
22250
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22251
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22252
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.213342"], ["updated_at", "2016-12-13 20:19:07.213342"]]
|
22253
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22254
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22255
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.214269"], ["updated_at", "2016-12-13 20:19:07.214269"]]
|
22256
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22257
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22258
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.215182"], ["updated_at", "2016-12-13 20:19:07.215182"]]
|
22259
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22260
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22261
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.216168"], ["updated_at", "2016-12-13 20:19:07.216168"]]
|
22262
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22263
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22264
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.217012"], ["updated_at", "2016-12-13 20:19:07.217012"]]
|
22265
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22266
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22267
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.217861"], ["updated_at", "2016-12-13 20:19:07.217861"]]
|
22268
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22269
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22270
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.218758"], ["updated_at", "2016-12-13 20:19:07.218758"]]
|
22271
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22272
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22273
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.219627"], ["updated_at", "2016-12-13 20:19:07.219627"]]
|
22274
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22275
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22276
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.220706"], ["updated_at", "2016-12-13 20:19:07.220706"]]
|
22277
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22278
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22279
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.221846"], ["updated_at", "2016-12-13 20:19:07.221846"]]
|
22280
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22281
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22282
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.222710"], ["updated_at", "2016-12-13 20:19:07.222710"]]
|
22283
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22284
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22285
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.223472"], ["updated_at", "2016-12-13 20:19:07.223472"]]
|
22286
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22287
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22288
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.224284"], ["updated_at", "2016-12-13 20:19:07.224284"]]
|
22289
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22290
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22291
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.225123"], ["updated_at", "2016-12-13 20:19:07.225123"]]
|
22292
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22293
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22294
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.226180"], ["updated_at", "2016-12-13 20:19:07.226180"]]
|
22295
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22296
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "products" LIMIT 15 OFFSET 4) subquery_for_count
|
22297
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22298
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "products" LIMIT 15 OFFSET 19) subquery_for_count
|
22299
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22300
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "products" LIMIT 15 OFFSET 34) subquery_for_count
|
22301
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22302
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
22303
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22304
|
+
-----------------------
|
22305
|
+
RelationTest: test_last
|
22306
|
+
-----------------------
|
22307
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22308
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.233462"], ["updated_at", "2016-12-13 20:19:07.233462"]]
|
22309
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22310
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22311
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.234531"], ["updated_at", "2016-12-13 20:19:07.234531"]]
|
22312
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22313
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22314
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.235307"], ["updated_at", "2016-12-13 20:19:07.235307"]]
|
22315
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22316
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22317
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.236143"], ["updated_at", "2016-12-13 20:19:07.236143"]]
|
22318
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22319
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22320
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.237029"], ["updated_at", "2016-12-13 20:19:07.237029"]]
|
22321
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22322
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22323
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.237955"], ["updated_at", "2016-12-13 20:19:07.237955"]]
|
22324
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22325
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22326
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.238845"], ["updated_at", "2016-12-13 20:19:07.238845"]]
|
22327
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22328
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22329
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.239661"], ["updated_at", "2016-12-13 20:19:07.239661"]]
|
22330
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22331
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22332
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.240389"], ["updated_at", "2016-12-13 20:19:07.240389"]]
|
22333
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22334
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22335
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.241133"], ["updated_at", "2016-12-13 20:19:07.241133"]]
|
22336
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22337
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "products"
|
22338
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
22339
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22340
|
+
------------------------
|
22341
|
+
RelationTest: test_empty
|
22342
|
+
------------------------
|
22343
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22344
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
22345
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22346
|
+
------------------------
|
22347
|
+
RelationTest: test_first
|
22348
|
+
------------------------
|
22349
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22350
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.244040"], ["updated_at", "2016-12-13 20:19:07.244040"]]
|
22351
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22352
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22353
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.244908"], ["updated_at", "2016-12-13 20:19:07.244908"]]
|
22354
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22355
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22356
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.245762"], ["updated_at", "2016-12-13 20:19:07.245762"]]
|
22357
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22358
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22359
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.246547"], ["updated_at", "2016-12-13 20:19:07.246547"]]
|
22360
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22361
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22362
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.247391"], ["updated_at", "2016-12-13 20:19:07.247391"]]
|
22363
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22365
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.248207"], ["updated_at", "2016-12-13 20:19:07.248207"]]
|
22366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22368
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.249104"], ["updated_at", "2016-12-13 20:19:07.249104"]]
|
22369
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22370
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22371
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.250039"], ["updated_at", "2016-12-13 20:19:07.250039"]]
|
22372
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22373
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22374
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.250910"], ["updated_at", "2016-12-13 20:19:07.250910"]]
|
22375
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22376
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22377
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.251761"], ["updated_at", "2016-12-13 20:19:07.251761"]]
|
22378
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22379
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "products"
|
22380
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
22381
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22382
|
+
----------------------
|
22383
|
+
RelationTest: test_out
|
22384
|
+
----------------------
|
22385
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22386
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.253619"], ["updated_at", "2016-12-13 20:19:07.253619"]]
|
22387
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22388
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22389
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.254560"], ["updated_at", "2016-12-13 20:19:07.254560"]]
|
22390
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22391
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22392
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.255333"], ["updated_at", "2016-12-13 20:19:07.255333"]]
|
22393
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22394
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22395
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.256258"], ["updated_at", "2016-12-13 20:19:07.256258"]]
|
22396
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22397
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22398
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.257090"], ["updated_at", "2016-12-13 20:19:07.257090"]]
|
22399
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22400
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22401
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.257834"], ["updated_at", "2016-12-13 20:19:07.257834"]]
|
22402
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22403
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22404
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.258540"], ["updated_at", "2016-12-13 20:19:07.258540"]]
|
22405
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22406
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
22407
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.259308"], ["updated_at", "2016-12-13 20:19:07.259308"]]
|
22408
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22409
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22410
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-12-13 20:19:07.260078"], ["updated_at", "2016-12-13 20:19:07.260078"]]
|
22411
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
22412
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
22413
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-12-13 20:19:07.260750"], ["updated_at", "2016-12-13 20:19:07.260750"]]
|
22414
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
22415
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "products"[0m
|
22416
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
22417
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
22418
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
22419
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22420
|
+
Migrating to CreateProducts (20130820024335)
|
22421
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22422
|
+
[1m[36m (7.7ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
22423
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130820024335"]]
|
22424
|
+
[1m[36m (11.6ms)[0m [1mCOMMIT[0m
|
22425
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
22426
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
22427
|
+
FROM pg_constraint c
|
22428
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
22429
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
22430
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
22431
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
22432
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
22433
|
+
WHERE c.contype = 'f'
|
22434
|
+
AND t1.relname = 'products'
|
22435
|
+
AND t3.nspname = ANY (current_schemas(false))
|
22436
|
+
ORDER BY c.conname
|
22437
|
+
[0m
|
data/test/generator_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mmontossi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -109,22 +109,6 @@ files:
|
|
109
109
|
- test/dummy/public/422.html
|
110
110
|
- test/dummy/public/500.html
|
111
111
|
- test/dummy/public/favicon.ico
|
112
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/34/34l0xNON3WYrRP9HWkz5ZK9IQzIEVGYFn6VDMKiheeA.cache
|
113
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
114
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
115
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/SG/SGNGr7AZfBE1q7ev2-YM1G-o0XAZ0pKqbsS3NvHtRcA.cache
|
116
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/TO/TOCwj3wVkgMFleFRO8KMLE3Qq6FsXpCeZD56U1AEPEc.cache
|
117
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJjzVvL4dd5E1S5fIpCphDLf9mEWeGfhO-ALTZpJ8-c.cache
|
118
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/fG/fG_uaNK13wisQiji91xNsGecGxX9QhMCF2eSX_aR0G0.cache
|
119
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbunrAFVOHPwl2npUgKv_C3f_qiJnZDd9zG5-h3jrpo.cache
|
120
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
121
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/mv/mvqN6PphkrOOC8zbUEhpC_9E_4ybdO25MRy_gG6dq3Y.cache
|
122
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/nm/nmcUZlKAIwyJ_35Nm9P8pukLeRX5aApP6NFj5MpNPgc.cache
|
123
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
124
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/sB/sB6xWxBmgzVC0Co9__ANYrE58lr4WPwiwFa9mswooWM.cache
|
125
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNrIny9hchHD9eIJxAicyYLC7qeV4PTh4Nh40_Y6Vg.cache
|
126
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdBKQyhEAlDIstGvXw945PWJoEWi23rKuY7elOcWqHc.cache
|
127
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/yH/yHjEG5b89-DY37A9c_d90xiOarCQ4bJHa-i98W72DXI.cache
|
128
112
|
- test/generator_test.rb
|
129
113
|
- test/relation_test.rb
|
130
114
|
- test/test_helper.rb
|
@@ -196,22 +180,6 @@ test_files:
|
|
196
180
|
- test/dummy/public/500.html
|
197
181
|
- test/dummy/public/favicon.ico
|
198
182
|
- test/dummy/Rakefile
|
199
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/34/34l0xNON3WYrRP9HWkz5ZK9IQzIEVGYFn6VDMKiheeA.cache
|
200
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
201
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/fG/fG_uaNK13wisQiji91xNsGecGxX9QhMCF2eSX_aR0G0.cache
|
202
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbunrAFVOHPwl2npUgKv_C3f_qiJnZDd9zG5-h3jrpo.cache
|
203
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
204
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/mv/mvqN6PphkrOOC8zbUEhpC_9E_4ybdO25MRy_gG6dq3Y.cache
|
205
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/nm/nmcUZlKAIwyJ_35Nm9P8pukLeRX5aApP6NFj5MpNPgc.cache
|
206
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
207
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
208
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/sB/sB6xWxBmgzVC0Co9__ANYrE58lr4WPwiwFa9mswooWM.cache
|
209
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/SG/SGNGr7AZfBE1q7ev2-YM1G-o0XAZ0pKqbsS3NvHtRcA.cache
|
210
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/TO/TOCwj3wVkgMFleFRO8KMLE3Qq6FsXpCeZD56U1AEPEc.cache
|
211
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNrIny9hchHD9eIJxAicyYLC7qeV4PTh4Nh40_Y6Vg.cache
|
212
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdBKQyhEAlDIstGvXw945PWJoEWi23rKuY7elOcWqHc.cache
|
213
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/yH/yHjEG5b89-DY37A9c_d90xiOarCQ4bJHa-i98W72DXI.cache
|
214
|
-
- test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJjzVvL4dd5E1S5fIpCphDLf9mEWeGfhO-ALTZpJ8-c.cache
|
215
183
|
- test/generator_test.rb
|
216
184
|
- test/relation_test.rb
|
217
185
|
- test/test_helper.rb
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/34/34l0xNON3WYrRP9HWkz5ZK9IQzIEVGYFn6VDMKiheeA.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
[o:Set:
|
2
|
-
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/SG/SGNGr7AZfBE1q7ev2-YM1G-o0XAZ0pKqbsS3NvHtRcA.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"%�W\�yho9S���ƫ˥��)|�~���(���
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/TO/TOCwj3wVkgMFleFRO8KMLE3Qq6FsXpCeZD56U1AEPEc.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJjzVvL4dd5E1S5fIpCphDLf9mEWeGfhO-ALTZpJ8-c.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/fG/fG_uaNK13wisQiji91xNsGecGxX9QhMCF2eSX_aR0G0.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbunrAFVOHPwl2npUgKv_C3f_qiJnZDd9zG5-h3jrpo.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=f5b0ef23afc5473c6ce69bf5b1726640b632022ddbcc75f393ffb8c60fef0d61:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/mv/mvqN6PphkrOOC8zbUEhpC_9E_4ybdO25MRy_gG6dq3Y.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"}app/assets/stylesheets/application.css?type=text/css&id=d50fbfd7d47fc650f2872d24ff2ae9eebbf4078f3d9216f1781e50b219155db5:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/nm/nmcUZlKAIwyJ_35Nm9P8pukLeRX5aApP6NFj5MpNPgc.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/javascripts/application.js?type=application/javascript&id=f6d655b2ba12b44c0ebacf891e03d769a8e4f7f9db68eb8a59ebe65051b2ffa8:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
[o:Set:
|
2
|
-
@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TTF
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/sB/sB6xWxBmgzVC0Co9__ANYrE58lr4WPwiwFa9mswooWM.cache
DELETED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNrIny9hchHD9eIJxAicyYLC7qeV4PTh4Nh40_Y6Vg.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"%Ѱč@�����6H�uZoX�Z�gbh0W��V
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/xd/xdBKQyhEAlDIstGvXw945PWJoEWi23rKuY7elOcWqHc.cache
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=b86766d5d3d5045e4d0e31f0bfe8fa9eb3345ec44e1defe88451b367d0e5ac5c:ET
|