timeful 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +112 -0
- data/Rakefile +31 -0
- data/app/jobs/timeful/deliver_activity_to_subscribers_job.rb +15 -0
- data/app/models/timeful/activity.rb +34 -0
- data/app/models/timeful/application_record.rb +6 -0
- data/app/models/timeful/feed_item.rb +13 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20160927141608_create_timeful_activities.rb +16 -0
- data/db/migrate/20160927154912_create_timeful_feed_items.rb +15 -0
- data/lib/generators/timeful/install_generator.rb +10 -0
- data/lib/timeful.rb +28 -0
- data/lib/timeful/engine.rb +6 -0
- data/lib/timeful/model/actor.rb +35 -0
- data/lib/timeful/model/subscriber.rb +21 -0
- data/lib/timeful/relation_proxy.rb +26 -0
- data/lib/timeful/version.rb +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/activities/post_activity.rb +5 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/post.rb +2 -0
- data/spec/dummy/app/models/user.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +22 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.example.yml +19 -0
- data/spec/dummy/config/database.yml +19 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20160927141815_create_timeful_activities.timeful.rb +17 -0
- data/spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb +16 -0
- data/spec/dummy/db/migrate/20160927160026_create_users.rb +8 -0
- data/spec/dummy/db/migrate/20160927160031_create_posts.rb +8 -0
- data/spec/dummy/db/schema.rb +50 -0
- data/spec/dummy/log/development.log +361 -0
- data/spec/dummy/log/test.log +3554 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/examples.txt +12 -0
- data/spec/factories/posts.rb +5 -0
- data/spec/factories/timeful/activities.rb +8 -0
- data/spec/factories/timeful/feed_items.rb +7 -0
- data/spec/factories/users.rb +5 -0
- data/spec/jobs/timeful/deliver_activity_to_subscribers_job_spec.rb +17 -0
- data/spec/models/timeful/activity_spec.rb +8 -0
- data/spec/models/timeful/feed_item_spec.rb +8 -0
- data/spec/rails_helper.rb +21 -0
- data/spec/spec_helper.rb +73 -0
- data/spec/support/active_job.rb +3 -0
- data/spec/support/database_cleaner.rb +19 -0
- data/spec/support/factory_girl.rb +5 -0
- data/spec/support/faker.rb +1 -0
- data/spec/support/shoulda.rb +8 -0
- data/spec/timeful/model/actor_spec.rb +20 -0
- data/spec/timeful/model/subscriber_spec.rb +17 -0
- data/spec/timeful/relation_proxy_spec.rb +34 -0
- data/spec/timeful/timeful_spec.rb +12 -0
- metadata +337 -0
@@ -0,0 +1,3554 @@
|
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
3
|
+
[1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
|
4
|
+
FROM pg_tables
|
5
|
+
WHERE
|
6
|
+
tablename !~ '_prt_' AND
|
7
|
+
tablename <> 'schema_migrations' AND
|
8
|
+
schemaname = ANY (current_schemas(false))
|
9
|
+
[0m
|
10
|
+
[1m[35m (1.7ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
11
|
+
[1m[36m (10.9ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
12
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
13
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
14
|
+
[1m[35m (0.2ms)[0m COMMIT
|
15
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16
|
+
Rendered hertz/notification_mailer/test_notification.html.erb (1.0ms)
|
17
|
+
|
18
|
+
Hertz::NotificationMailer#notification_email: processed outbound mail in 12.4ms
|
19
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
20
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
21
|
+
[1m[35m (0.3ms)[0m COMMIT
|
22
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
24
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
25
|
+
[1m[35m (3.0ms)[0m COMMIT
|
26
|
+
[1m[36m (1.3ms)[0m [1mBEGIN[0m
|
27
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "mike_roberts@braunjohnston.name"], ["created_at", "2016-05-08 08:57:57.682543"], ["updated_at", "2016-05-08 08:57:57.682543"]]
|
29
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-05-08 08:57:57.687486"]]
|
30
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
32
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
33
|
+
[1m[35m (0.2ms)[0m COMMIT
|
34
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
36
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "kurt@boehm.net"], ["created_at", "2016-05-08 08:57:57.696993"], ["updated_at", "2016-05-08 08:57:57.696993"]]
|
37
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["created_at", "2016-05-08 08:57:57.698815"]]
|
38
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
39
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
40
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "allan@mueller.info"], ["created_at", "2016-05-08 08:57:57.703030"], ["updated_at", "2016-05-08 08:57:57.703030"]]
|
41
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 08:57:57.702160"], ["receiver_id", 3], ["created_at", "2016-05-08 08:57:57.705189"]]
|
42
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
43
|
+
[1m[35mHertz::Notification Load (0.5ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
|
44
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
45
|
+
[1m[35m (0.3ms)[0m BEGIN
|
46
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
47
|
+
[1m[35m (0.2ms)[0m BEGIN
|
48
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
49
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "cory@brakusvolkman.org"], ["created_at", "2016-05-08 08:57:57.714748"], ["updated_at", "2016-05-08 08:57:57.714748"]]
|
50
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 08:57:57.714057"], ["receiver_id", 4], ["created_at", "2016-05-08 08:57:57.716131"]]
|
51
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
52
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
53
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
|
54
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
56
|
+
[1m[36m (2.5ms)[0m [1mBEGIN[0m
|
57
|
+
[1m[35m (0.8ms)[0m COMMIT
|
58
|
+
[1m[36m (1.6ms)[0m [1mBEGIN[0m
|
59
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
60
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
61
|
+
[1m[35m (0.2ms)[0m COMMIT
|
62
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
63
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
64
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "mateo_lang@mitchell.org"], ["created_at", "2016-05-08 08:57:57.744663"], ["updated_at", "2016-05-08 08:57:57.744663"]]
|
65
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-05-08 08:57:57.746242"]]
|
66
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
67
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
68
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", "2016-05-08 08:57:57.748336"], ["id", 5]]
|
69
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
70
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
71
|
+
[1m[35m (0.2ms)[0m BEGIN
|
72
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
73
|
+
[1m[35m (0.2ms)[0m BEGIN
|
74
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
75
|
+
[1m[35m (0.2ms)[0m BEGIN
|
76
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
77
|
+
[1m[35m (0.2ms)[0m BEGIN
|
78
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
79
|
+
[1m[35m (0.2ms)[0m BEGIN
|
80
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
81
|
+
[1m[35m (0.2ms)[0m BEGIN
|
82
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
83
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "retta@heathcote.org"], ["created_at", "2016-05-08 08:57:57.762738"], ["updated_at", "2016-05-08 08:57:57.762738"]]
|
84
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
85
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
|
86
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
87
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 6], ["receiver_type", "User"], ["created_at", "2016-05-08 08:57:57.773577"]]
|
88
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
|
90
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
91
|
+
[1m[35m (0.2ms)[0m BEGIN
|
92
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
93
|
+
[1m[35m (0.2ms)[0m BEGIN
|
94
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
95
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jerrod.dicki@larson.name"], ["created_at", "2016-05-08 08:57:57.780359"], ["updated_at", "2016-05-08 08:57:57.780359"]]
|
96
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
97
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
98
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_id", 7], ["receiver_type", "User"], ["created_at", "2016-05-08 08:57:57.783114"]]
|
99
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
100
|
+
[1m[36mHertz::Notification Load (0.3ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 7], ["receiver_type", "User"]]
|
101
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
102
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
103
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
104
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
105
|
+
[1m[36m (4.8ms)[0m [1m SELECT schemaname || '.' || tablename
|
106
|
+
FROM pg_tables
|
107
|
+
WHERE
|
108
|
+
tablename !~ '_prt_' AND
|
109
|
+
tablename <> 'schema_migrations' AND
|
110
|
+
schemaname = ANY (current_schemas(false))
|
111
|
+
[0m
|
112
|
+
[1m[35m (3.7ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
113
|
+
[1m[36m (23.6ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
114
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
115
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
116
|
+
[1m[35m (0.2ms)[0m COMMIT
|
117
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
118
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
119
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
120
|
+
[1m[35m (1.8ms)[0m COMMIT
|
121
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
122
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
123
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "theresa@mayer.co"], ["created_at", "2016-05-08 09:42:59.820995"], ["updated_at", "2016-05-08 09:42:59.820995"]]
|
124
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
125
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
126
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
127
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-05-08 09:42:59.837958"]]
|
128
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
129
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
130
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
131
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
132
|
+
[1m[35m (0.1ms)[0m COMMIT
|
133
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
134
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
135
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "lionel.murphy@blanda.io"], ["created_at", "2016-05-08 09:42:59.844332"], ["updated_at", "2016-05-08 09:42:59.844332"]]
|
136
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
137
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
138
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2016-05-08 09:42:59.847061"]]
|
139
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mHertz::Notification Load (0.2ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
|
141
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
142
|
+
[1m[35m (0.1ms)[0m BEGIN
|
143
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
144
|
+
[1m[35m (0.1ms)[0m BEGIN
|
145
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
146
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "josefina@reinger.net"], ["created_at", "2016-05-08 09:42:59.856179"], ["updated_at", "2016-05-08 09:42:59.856179"]]
|
147
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-05-08 09:42:59.857535"]]
|
148
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
149
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
150
|
+
[1m[35m (0.1ms)[0m BEGIN
|
151
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
152
|
+
[1m[35m (0.1ms)[0m BEGIN
|
153
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
154
|
+
[1m[35m (0.2ms)[0m BEGIN
|
155
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
156
|
+
[1m[35m (0.1ms)[0m BEGIN
|
157
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
158
|
+
[1m[35m (0.1ms)[0m BEGIN
|
159
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
160
|
+
[1m[35m (0.1ms)[0m BEGIN
|
161
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
162
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "peyton@stamm.co"], ["created_at", "2016-05-08 09:42:59.869951"], ["updated_at", "2016-05-08 09:42:59.869951"]]
|
163
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:42:59.868270"], ["receiver_id", 4], ["created_at", "2016-05-08 09:42:59.872125"]]
|
164
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
165
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
166
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
|
167
|
+
[1m[36m (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
168
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
169
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
170
|
+
[1m[35m (1.5ms)[0m COMMIT
|
171
|
+
[1m[36m (1.4ms)[0m [1mBEGIN[0m
|
172
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
173
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "fern.hackett@doyle.name"], ["created_at", "2016-05-08 09:42:59.895981"], ["updated_at", "2016-05-08 09:42:59.895981"]]
|
174
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-05-08 09:42:59.897512"]]
|
175
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
176
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
177
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["email", "carroll.dubuque@hillchroeder.net"], ["created_at", "2016-05-08 09:42:59.900473"], ["updated_at", "2016-05-08 09:42:59.900473"]]
|
178
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:42:59.899860"], ["receiver_id", 6], ["created_at", "2016-05-08 09:42:59.903226"]]
|
179
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
180
|
+
[1m[35mHertz::Notification Load (0.4ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
|
181
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
182
|
+
[1m[35m (0.1ms)[0m BEGIN
|
183
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
184
|
+
[1m[35m (0.1ms)[0m BEGIN
|
185
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
186
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "beth@wolf.com"], ["created_at", "2016-05-08 09:42:59.914130"], ["updated_at", "2016-05-08 09:42:59.914130"]]
|
187
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 7], ["created_at", "2016-05-08 09:42:59.918024"]]
|
188
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
189
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
190
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-05-08 09:42:59.921735"], ["id", 7]]
|
191
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
192
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
193
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
194
|
+
[1m[36m (106.8ms)[0m [1mDROP DATABASE IF EXISTS "hertz_test"[0m
|
195
|
+
[1m[35m (367.6ms)[0m CREATE DATABASE "hertz_test" ENCODING = 'utf8'
|
196
|
+
[1m[36mSQL (0.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
197
|
+
[1m[35mSQL (30.4ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
198
|
+
[1m[36m (9.5ms)[0m [1mCREATE TABLE "hertz_notifications" ("id" serial primary key, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL) [0m
|
199
|
+
[1m[35m (5.8ms)[0m CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
200
|
+
[1m[36m (4.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
201
|
+
[1m[35m (4.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
202
|
+
[1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
203
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160508094342')
|
204
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160415175837')[0m
|
205
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
|
206
|
+
[1m[36m (3.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160418122437')[0m
|
207
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
208
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
209
|
+
[1m[35m (2.3ms)[0m SELECT schemaname || '.' || tablename
|
210
|
+
FROM pg_tables
|
211
|
+
WHERE
|
212
|
+
tablename !~ '_prt_' AND
|
213
|
+
tablename <> 'schema_migrations' AND
|
214
|
+
schemaname = ANY (current_schemas(false))
|
215
|
+
|
216
|
+
[1m[36m (2.5ms)[0m [1mselect table_name from information_schema.views where table_schema = 'hertz_test'[0m
|
217
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
218
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
219
|
+
[1m[35m (0.3ms)[0m BEGIN
|
220
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
221
|
+
[1m[35m (0.2ms)[0m BEGIN
|
222
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
223
|
+
[1m[35m (0.1ms)[0m BEGIN
|
224
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
225
|
+
[1m[35m (0.3ms)[0m BEGIN
|
226
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
227
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.802237"], ["updated_at", "2016-05-08 09:44:03.802237"]]
|
228
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-05-08 09:44:03.807237"]]
|
229
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
230
|
+
[1m[36m (1.1ms)[0m [1mROLLBACK[0m
|
231
|
+
[1m[35m (0.2ms)[0m BEGIN
|
232
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
233
|
+
[1m[35m (0.1ms)[0m BEGIN
|
234
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
235
|
+
[1m[35m (0.2ms)[0m BEGIN
|
236
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
237
|
+
[1m[35m (0.1ms)[0m BEGIN
|
238
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
239
|
+
[1m[35m (0.1ms)[0m BEGIN
|
240
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
241
|
+
[1m[35m (0.1ms)[0m BEGIN
|
242
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
243
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.828470"], ["updated_at", "2016-05-08 09:44:03.828470"]]
|
244
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["created_at", "2016-05-08 09:44:03.830017"]]
|
245
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
246
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
247
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.833328"], ["updated_at", "2016-05-08 09:44:03.833328"]]
|
248
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:03.832604"], ["receiver_id", 3], ["created_at", "2016-05-08 09:44:03.835174"]]
|
249
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
250
|
+
[1m[36mHertz::Notification Load (1.8ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)[0m
|
251
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
252
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
253
|
+
[1m[35m (0.1ms)[0m COMMIT
|
254
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
255
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
256
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-08 09:44:03.847493"], ["updated_at", "2016-05-08 09:44:03.847493"]]
|
257
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:03.846419"], ["receiver_id", 4], ["created_at", "2016-05-08 09:44:03.850016"]]
|
258
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
259
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
260
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 4]]
|
261
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
262
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
263
|
+
[1m[35m (0.4ms)[0m BEGIN
|
264
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
265
|
+
[1m[35m (0.1ms)[0m BEGIN
|
266
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
267
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.866348"], ["updated_at", "2016-05-08 09:44:03.866348"]]
|
268
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-05-08 09:44:03.867947"]]
|
269
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
270
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
271
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-05-08 09:44:03.870491"], ["id", 5]]
|
272
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
273
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
274
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
275
|
+
[1m[35m (0.1ms)[0m COMMIT
|
276
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
277
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
278
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-08 09:44:03.879831"], ["updated_at", "2016-05-08 09:44:03.879831"]]
|
279
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
280
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
281
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 6], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:03.886666"]]
|
282
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
283
|
+
[1m[35mHertz::Notification Load (0.4ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
|
284
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
285
|
+
[1m[35m (0.1ms)[0m BEGIN
|
286
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
287
|
+
[1m[35m (0.1ms)[0m BEGIN
|
288
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
289
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.920255"], ["updated_at", "2016-05-08 09:44:03.920255"]]
|
290
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
291
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
|
292
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
293
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 7], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:03.929978"]]
|
294
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
295
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
|
296
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
297
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
298
|
+
[1m[35m (7.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
299
|
+
[1m[36m (1.4ms)[0m [1m SELECT schemaname || '.' || tablename
|
300
|
+
FROM pg_tables
|
301
|
+
WHERE
|
302
|
+
tablename !~ '_prt_' AND
|
303
|
+
tablename <> 'schema_migrations' AND
|
304
|
+
schemaname = ANY (current_schemas(false))
|
305
|
+
[0m
|
306
|
+
[1m[35m (1.4ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
307
|
+
[1m[36m (9.8ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
308
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
309
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
310
|
+
[1m[35m (0.2ms)[0m COMMIT
|
311
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
312
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
313
|
+
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-08 09:44:40.578060"], ["updated_at", "2016-05-08 09:44:40.578060"]]
|
314
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
315
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
316
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
317
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:40.620014"]]
|
318
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
319
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
320
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
321
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
322
|
+
[1m[35m (0.3ms)[0m COMMIT
|
323
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
324
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
325
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-08 09:44:40.628528"], ["updated_at", "2016-05-08 09:44:40.628528"]]
|
326
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
327
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
328
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:40.631941"]]
|
329
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
330
|
+
[1m[35mHertz::Notification Load (0.5ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
|
331
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
332
|
+
[1m[35m (0.3ms)[0m BEGIN
|
333
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
334
|
+
[1m[35m (0.3ms)[0m BEGIN
|
335
|
+
[1m[36m (1.5ms)[0m [1mROLLBACK[0m
|
336
|
+
[1m[35m (0.4ms)[0m BEGIN
|
337
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
338
|
+
[1m[35m (2.8ms)[0m BEGIN
|
339
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
340
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.665470"], ["updated_at", "2016-05-08 09:44:40.665470"]]
|
341
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-05-08 09:44:40.667555"]]
|
342
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
343
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
344
|
+
[1m[35m (0.1ms)[0m BEGIN
|
345
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
346
|
+
[1m[35m (0.1ms)[0m BEGIN
|
347
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
348
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.675373"], ["updated_at", "2016-05-08 09:44:40.675373"]]
|
349
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 4], ["created_at", "2016-05-08 09:44:40.677479"]]
|
350
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
351
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
352
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.681590"], ["updated_at", "2016-05-08 09:44:40.681590"]]
|
353
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:40.680667"], ["receiver_id", 5], ["created_at", "2016-05-08 09:44:40.683379"]]
|
354
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
355
|
+
[1m[36mHertz::Notification Load (0.3ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)[0m
|
356
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
357
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
358
|
+
[1m[35m (0.2ms)[0m COMMIT
|
359
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
360
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
361
|
+
[1m[36m (1.7ms)[0m [1mBEGIN[0m
|
362
|
+
[1m[35m (0.3ms)[0m COMMIT
|
363
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
364
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
365
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-08 09:44:40.706615"], ["updated_at", "2016-05-08 09:44:40.706615"]]
|
366
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 6], ["created_at", "2016-05-08 09:44:40.708803"]]
|
367
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
368
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
369
|
+
[1m[36mSQL (3.8ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", "2016-05-08 09:44:40.711782"], ["id", 6]]
|
370
|
+
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
|
371
|
+
[1m[36m (1.9ms)[0m [1mROLLBACK[0m
|
372
|
+
[1m[35m (0.7ms)[0m BEGIN
|
373
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
374
|
+
[1m[35m (1.2ms)[0m BEGIN
|
375
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
376
|
+
[1m[35m (0.3ms)[0m BEGIN
|
377
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
378
|
+
[1m[35m (0.3ms)[0m BEGIN
|
379
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
380
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.749248"], ["updated_at", "2016-05-08 09:44:40.749248"]]
|
381
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:40.748411"], ["receiver_id", 7], ["created_at", "2016-05-08 09:44:40.750785"]]
|
382
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
383
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
384
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 7]]
|
385
|
+
[1m[36m (2.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
386
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
387
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
388
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
389
|
+
[1m[36m (1.6ms)[0m [1m SELECT schemaname || '.' || tablename
|
390
|
+
FROM pg_tables
|
391
|
+
WHERE
|
392
|
+
tablename !~ '_prt_' AND
|
393
|
+
tablename <> 'schema_migrations' AND
|
394
|
+
schemaname = ANY (current_schemas(false))
|
395
|
+
[0m
|
396
|
+
[1m[35m (1.8ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
397
|
+
[1m[36m (28.4ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
398
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
399
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
400
|
+
[1m[35m (0.3ms)[0m COMMIT
|
401
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
402
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
403
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-09 13:17:58.934303"], ["updated_at", "2016-05-09 13:17:58.934303"]]
|
404
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-05-09 13:17:58.938890"]]
|
405
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
406
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
407
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
408
|
+
[1m[35m (0.3ms)[0m COMMIT
|
409
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
410
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
411
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-09 13:17:58.946777"], ["updated_at", "2016-05-09 13:17:58.946777"]]
|
412
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["created_at", "2016-05-09 13:17:58.948628"]]
|
413
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
414
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
415
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-09 13:17:58.952247"], ["updated_at", "2016-05-09 13:17:58.952247"]]
|
416
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-09 13:17:58.951355"], ["receiver_id", 3], ["created_at", "2016-05-09 13:17:58.953828"]]
|
417
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
418
|
+
[1m[35mHertz::Notification Load (0.6ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
|
419
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
420
|
+
[1m[35m (0.3ms)[0m BEGIN
|
421
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
422
|
+
[1m[35m (0.3ms)[0m BEGIN
|
423
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
424
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-09 13:17:58.963878"], ["updated_at", "2016-05-09 13:17:58.963878"]]
|
425
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 4], ["created_at", "2016-05-09 13:17:58.965752"]]
|
426
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
427
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
428
|
+
[1m[35mSQL (4.2ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-05-09 13:17:58.970146"], ["id", 4]]
|
429
|
+
[1m[36m (2.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
430
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
431
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
432
|
+
[1m[35m (0.4ms)[0m COMMIT
|
433
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
434
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
435
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-05-09 13:17:58.993787"], ["updated_at", "2016-05-09 13:17:58.993787"]]
|
436
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-09 13:17:58.992764"], ["receiver_id", 5], ["created_at", "2016-05-09 13:17:58.996105"]]
|
437
|
+
[1m[36m (1.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
438
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
439
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 5]]
|
440
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
441
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
442
|
+
[1m[35m (0.1ms)[0m BEGIN
|
443
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
444
|
+
[1m[35m (0.1ms)[0m BEGIN
|
445
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
446
|
+
[1m[35m (0.4ms)[0m BEGIN
|
447
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
448
|
+
[1m[35m (0.2ms)[0m BEGIN
|
449
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
450
|
+
[1m[35m (0.2ms)[0m BEGIN
|
451
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
452
|
+
[1m[35m (0.4ms)[0m BEGIN
|
453
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
454
|
+
[1m[35m (0.1ms)[0m BEGIN
|
455
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
456
|
+
[1m[35m (0.1ms)[0m BEGIN
|
457
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
458
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-09 13:17:59.034590"], ["updated_at", "2016-05-09 13:17:59.034590"]]
|
459
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
460
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
|
461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
462
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 6], ["receiver_type", "User"], ["created_at", "2016-05-09 13:17:59.062316"]]
|
463
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
464
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
465
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
466
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
|
467
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
468
|
+
[1m[35m (0.1ms)[0m BEGIN
|
469
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
470
|
+
[1m[35m (0.1ms)[0m BEGIN
|
471
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
472
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-09 13:17:59.070839"], ["updated_at", "2016-05-09 13:17:59.070839"]]
|
473
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
474
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
475
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_id", 7], ["receiver_type", "User"], ["created_at", "2016-05-09 13:17:59.073642"]]
|
476
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
477
|
+
[1m[36mHertz::Notification Load (0.2ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 7], ["receiver_type", "User"]]
|
478
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
479
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
480
|
+
[1m[35m (2.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
481
|
+
[1m[36m (2.2ms)[0m [1m SELECT schemaname || '.' || tablename
|
482
|
+
FROM pg_tables
|
483
|
+
WHERE
|
484
|
+
tablename !~ '_prt_' AND
|
485
|
+
tablename <> 'schema_migrations' AND
|
486
|
+
schemaname = ANY (current_schemas(false))
|
487
|
+
[0m
|
488
|
+
[1m[35m (10.8ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
489
|
+
[1m[36m (29.1ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
490
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
491
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
492
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 08:38:18.410643"], ["updated_at", "2016-06-27 08:38:18.410643"]]
|
493
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 08:38:18.416033"]]
|
494
|
+
[1m[35m (1.2ms)[0m COMMIT
|
495
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
496
|
+
[1m[35m (6.7ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
497
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
498
|
+
[1m[35m (0.2ms)[0m BEGIN
|
499
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 08:38:18.432445"], ["updated_at", "2016-06-27 08:38:18.432445"]]
|
500
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 08:38:18.431658"], ["receiver_id", 1], ["created_at", "2016-06-27 08:38:18.434155"]]
|
501
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
502
|
+
[1m[35m (0.3ms)[0m BEGIN
|
503
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 1]]
|
504
|
+
[1m[35m (1.7ms)[0m COMMIT
|
505
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
506
|
+
[1m[35m (6.5ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
507
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
508
|
+
[1m[35m (0.8ms)[0m BEGIN
|
509
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 08:38:18.472918"], ["updated_at", "2016-06-27 08:38:18.472918"]]
|
510
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 08:38:18.476322"]]
|
511
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
512
|
+
[1m[35m (0.1ms)[0m BEGIN
|
513
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 08:38:18.482948"], ["updated_at", "2016-06-27 08:38:18.482948"]]
|
514
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 08:38:18.482394"], ["receiver_id", 2], ["created_at", "2016-06-27 08:38:18.484067"]]
|
515
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
516
|
+
[1m[35mHertz::Notification Load (1.6ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
|
517
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
518
|
+
[1m[35m (13.1ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
519
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
520
|
+
[1m[35m (0.3ms)[0m BEGIN
|
521
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 08:38:18.516126"], ["updated_at", "2016-06-27 08:38:18.516126"]]
|
522
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 08:38:18.517793"]]
|
523
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
524
|
+
[1m[35m (0.2ms)[0m BEGIN
|
525
|
+
[1m[36mSQL (1.8ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", "2016-06-27 08:38:18.522144"], ["id", 1]]
|
526
|
+
[1m[35m (1.0ms)[0m COMMIT
|
527
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
528
|
+
[1m[35m (12.6ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
529
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
530
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
531
|
+
[1m[36m (16.8ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
532
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
533
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
534
|
+
[1m[35m (9.9ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
535
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
536
|
+
[1m[35m (1.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
537
|
+
[1m[36m (16.7ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
538
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
539
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
540
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 08:38:18.623102"], ["updated_at", "2016-06-27 08:38:18.623102"]]
|
541
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
542
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
543
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
544
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 08:38:18.654141"]]
|
545
|
+
[1m[36m (4.4ms)[0m [1mCOMMIT[0m
|
546
|
+
[1m[35m (0.2ms)[0m BEGIN
|
547
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
548
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
549
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
550
|
+
[1m[35m (14.1ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
551
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
552
|
+
[1m[35m (0.1ms)[0m BEGIN
|
553
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 08:38:18.687191"], ["updated_at", "2016-06-27 08:38:18.687191"]]
|
554
|
+
[1m[35m (1.6ms)[0m COMMIT
|
555
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
556
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 08:38:18.691841"]]
|
557
|
+
[1m[36m (1.8ms)[0m [1mCOMMIT[0m
|
558
|
+
[1m[35mHertz::Notification Load (0.2ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
559
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
560
|
+
[1m[35m (13.8ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
561
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
562
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
563
|
+
[1m[36m (22.9ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
564
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
565
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL[0m
|
566
|
+
[1m[35m (9.1ms)[0m TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
|
567
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL[0m
|
568
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
|
569
|
+
[1m[36m (6.0ms)[0m [1mTRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;[0m
|
570
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
|
571
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
572
|
+
[1m[36m (117.9ms)[0m [1mDROP DATABASE IF EXISTS "hertz_test"[0m
|
573
|
+
[1m[35m (435.2ms)[0m CREATE DATABASE "hertz_test" ENCODING = 'utf8'
|
574
|
+
[1m[36mSQL (0.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
575
|
+
[1m[35mSQL (18.7ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
576
|
+
[1m[36m (10.1ms)[0m [1mCREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
577
|
+
[1m[35m (3.8ms)[0m CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" USING btree ("notification_id", "courier")
|
578
|
+
[1m[36m (3.3ms)[0m [1mCREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" USING btree ("notification_id")[0m
|
579
|
+
[1m[35m (8.6ms)[0m CREATE TABLE "hertz_notifications" ("id" serial primary key, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
|
580
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
581
|
+
[1m[35m (2.6ms)[0m ALTER TABLE "hertz_notification_deliveries" ADD CONSTRAINT "fk_rails_68c880ead4"
|
582
|
+
FOREIGN KEY ("notification_id")
|
583
|
+
REFERENCES "hertz_notifications" ("id")
|
584
|
+
ON DELETE CASCADE
|
585
|
+
[1m[36m (4.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
586
|
+
[1m[35m (3.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
587
|
+
[1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
588
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160627084119')
|
589
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160415175837')[0m
|
590
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160508094342')
|
591
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160415175358')[0m
|
592
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
|
593
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
594
|
+
[1m[36m (3.0ms)[0m [1mALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
595
|
+
[1m[35m (2.4ms)[0m SELECT schemaname || '.' || tablename
|
596
|
+
FROM pg_tables
|
597
|
+
WHERE
|
598
|
+
tablename !~ '_prt_' AND
|
599
|
+
tablename <> 'schema_migrations' AND
|
600
|
+
schemaname = ANY (current_schemas(false))
|
601
|
+
|
602
|
+
[1m[36m (1.5ms)[0m [1mselect table_name from information_schema.views where table_schema = 'hertz_test'[0m
|
603
|
+
[1m[35m (20.2ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
604
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
605
|
+
[1m[35m (0.3ms)[0m BEGIN
|
606
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:22:35.293788"], ["updated_at", "2016-06-27 09:22:35.293788"]]
|
607
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:22:35.298060"]]
|
608
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
609
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
610
|
+
[1m[36m (16.8ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
611
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL
|
612
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
613
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:22:35.326866"], ["updated_at", "2016-06-27 09:22:35.326866"]]
|
614
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:22:35.328478"]]
|
615
|
+
[1m[35m (1.3ms)[0m COMMIT
|
616
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
617
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:22:35.333366"], ["updated_at", "2016-06-27 09:22:35.333366"]]
|
618
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:22:35.332442"], ["receiver_id", 2], ["created_at", "2016-06-27 09:22:35.334986"]]
|
619
|
+
[1m[35m (1.1ms)[0m COMMIT
|
620
|
+
[1m[36mHertz::Notification Load (0.4ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)[0m
|
621
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL
|
622
|
+
[1m[36m (25.9ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
623
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
624
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
625
|
+
[1m[35m (23.9ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
626
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
627
|
+
[1m[35m (0.1ms)[0m BEGIN
|
628
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:22:35.410970"], ["updated_at", "2016-06-27 09:22:35.410970"]]
|
629
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:22:35.412355"]]
|
630
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
631
|
+
[1m[35m (0.2ms)[0m BEGIN
|
632
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", "2016-06-27 09:22:35.416418"], ["id", 1]]
|
633
|
+
[1m[35m (3.5ms)[0m COMMIT
|
634
|
+
[1m[36m (2.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
635
|
+
[1m[35m (20.1ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
636
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
637
|
+
[1m[35m (0.1ms)[0m BEGIN
|
638
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:22:35.455485"], ["updated_at", "2016-06-27 09:22:35.455485"]]
|
639
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:22:35.454864"], ["receiver_id", 1], ["created_at", "2016-06-27 09:22:35.456815"]]
|
640
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
641
|
+
[1m[35m (0.1ms)[0m BEGIN
|
642
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 1]]
|
643
|
+
[1m[35m (0.8ms)[0m COMMIT
|
644
|
+
[1m[36m (1.7ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
645
|
+
[1m[35m (12.1ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
646
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
647
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
648
|
+
[1m[36m (25.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
649
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
650
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
651
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:22:35.516271"], ["updated_at", "2016-06-27 09:22:35.516271"]]
|
652
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
653
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
654
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
655
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:22:35.536974"]]
|
656
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
657
|
+
[1m[35m (0.1ms)[0m BEGIN
|
658
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
659
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
660
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
661
|
+
[1m[35m (30.2ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
662
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
663
|
+
[1m[35m (0.4ms)[0m BEGIN
|
664
|
+
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:22:35.580308"], ["updated_at", "2016-06-27 09:22:35.580308"]]
|
665
|
+
[1m[35m (3.7ms)[0m COMMIT
|
666
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
667
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:22:35.591566"]]
|
668
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
669
|
+
[1m[35mHertz::Notification Load (0.2ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
670
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
671
|
+
[1m[35m (38.3ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
672
|
+
[1m[36m (2.9ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
673
|
+
[1m[35m (1.9ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
674
|
+
[1m[36m (14.4ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
675
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
676
|
+
[1m[36m (1.7ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
677
|
+
[1m[35m (16.4ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
678
|
+
[1m[36m (0.9ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
679
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
680
|
+
[1m[36m (12.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
681
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
682
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
683
|
+
[1m[35m (17.8ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
684
|
+
[1m[36m (4.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
685
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
686
|
+
[1m[35m (3.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
687
|
+
[1m[36m (5.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
688
|
+
FROM pg_tables
|
689
|
+
WHERE
|
690
|
+
tablename !~ '_prt_' AND
|
691
|
+
tablename <> 'schema_migrations' AND
|
692
|
+
schemaname = ANY (current_schemas(false))
|
693
|
+
[0m
|
694
|
+
[1m[35m (2.3ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
695
|
+
[1m[36m (31.5ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
696
|
+
[1m[35m (1.7ms)[0m ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
|
697
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
698
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:24:01.881281"], ["updated_at", "2016-06-27 09:24:01.881281"]]
|
699
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
700
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
701
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
702
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:24:01.914600"]]
|
703
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
704
|
+
[1m[35m (0.3ms)[0m BEGIN
|
705
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
706
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
707
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
708
|
+
[1m[35m (14.0ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
709
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL[0m
|
710
|
+
[1m[35m (0.2ms)[0m BEGIN
|
711
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:01.942409"], ["updated_at", "2016-06-27 09:24:01.942409"]]
|
712
|
+
[1m[35m (1.3ms)[0m COMMIT
|
713
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
714
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:24:01.947058"]]
|
715
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
716
|
+
[1m[35mHertz::Notification Load (0.4ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
717
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
718
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
719
|
+
[1m[36m (2.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
720
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
721
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
722
|
+
[1m[35m (4.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
723
|
+
[1m[36m (1.8ms)[0m [1mBEGIN[0m
|
724
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:24:02.038233"], ["updated_at", "2016-06-27 09:24:02.038233"]]
|
725
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:02.040587"]]
|
726
|
+
[1m[35m (4.4ms)[0m COMMIT
|
727
|
+
[1m[36m (5.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
728
|
+
[1m[35m (25.6ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
729
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
730
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
731
|
+
[1m[36m (13.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
732
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
733
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
734
|
+
[1m[35m (28.2ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
735
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
736
|
+
[1m[35m (0.1ms)[0m BEGIN
|
737
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:02.149111"], ["updated_at", "2016-06-27 09:24:02.149111"]]
|
738
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:24:02.148358"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:02.150648"]]
|
739
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
740
|
+
[1m[35m (0.8ms)[0m BEGIN
|
741
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 1]]
|
742
|
+
[1m[35m (1.5ms)[0m COMMIT
|
743
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
744
|
+
[1m[35m (17.5ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
745
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
746
|
+
[1m[35m (0.1ms)[0m BEGIN
|
747
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:02.190835"], ["updated_at", "2016-06-27 09:24:02.190835"]]
|
748
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:02.192269"]]
|
749
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
750
|
+
[1m[35m (0.1ms)[0m BEGIN
|
751
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:02.196325"], ["updated_at", "2016-06-27 09:24:02.196325"]]
|
752
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:24:02.195761"], ["receiver_id", 2], ["created_at", "2016-06-27 09:24:02.197554"]]
|
753
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
754
|
+
[1m[35mHertz::Notification Load (0.5ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
|
755
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
756
|
+
[1m[35m (15.1ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
757
|
+
[1m[36m (4.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
758
|
+
[1m[35m (0.2ms)[0m BEGIN
|
759
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:02.228281"], ["updated_at", "2016-06-27 09:24:02.228281"]]
|
760
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:02.230540"]]
|
761
|
+
[1m[36m (2.5ms)[0m [1mCOMMIT[0m
|
762
|
+
[1m[35m (0.1ms)[0m BEGIN
|
763
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", "2016-06-27 09:24:02.237270"], ["id", 1]]
|
764
|
+
[1m[35m (0.8ms)[0m COMMIT
|
765
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
766
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
767
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
768
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
769
|
+
[1m[36m (19.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
770
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
771
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
772
|
+
[1m[35m (11.6ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
773
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
774
|
+
[1m[35m (3.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
775
|
+
[1m[36m (23.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
776
|
+
[1m[35m (2.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
777
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
778
|
+
[1m[35m (7.0ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
779
|
+
[1m[36m (2.7ms)[0m [1m SELECT schemaname || '.' || tablename
|
780
|
+
FROM pg_tables
|
781
|
+
WHERE
|
782
|
+
tablename !~ '_prt_' AND
|
783
|
+
tablename <> 'schema_migrations' AND
|
784
|
+
schemaname = ANY (current_schemas(false))
|
785
|
+
[0m
|
786
|
+
[1m[35m (1.3ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
787
|
+
[1m[36m (35.7ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
788
|
+
[1m[35m (1.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
789
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
790
|
+
[1m[35m (15.7ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
791
|
+
[1m[36m (1.9ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
792
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
793
|
+
[1m[36m (13.5ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
794
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
795
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
796
|
+
[1m[35m (17.3ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
797
|
+
[1m[36m (3.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
798
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
799
|
+
[1m[36m (18.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
800
|
+
[1m[35m (3.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
801
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
802
|
+
[1m[35mSQL (6.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:24:14.824794"], ["updated_at", "2016-06-27 09:24:14.824794"]]
|
803
|
+
[1m[36m (4.0ms)[0m [1mCOMMIT[0m
|
804
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
805
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
806
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:24:14.858372"]]
|
807
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
808
|
+
[1m[35m (0.2ms)[0m BEGIN
|
809
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
810
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
811
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
812
|
+
[1m[35m (11.7ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
813
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
814
|
+
[1m[35m (0.1ms)[0m BEGIN
|
815
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:14.881819"], ["updated_at", "2016-06-27 09:24:14.881819"]]
|
816
|
+
[1m[35m (0.8ms)[0m COMMIT
|
817
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
818
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:24:14.885760"]]
|
819
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
820
|
+
[1m[35mHertz::Notification Load (0.6ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
821
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
822
|
+
[1m[35m (12.2ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
823
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
824
|
+
[1m[35m (0.2ms)[0m BEGIN
|
825
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:14.912418"], ["updated_at", "2016-06-27 09:24:14.912418"]]
|
826
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:14.914362"]]
|
827
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
828
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
829
|
+
[1m[36m (15.8ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
830
|
+
[1m[35m (1.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
831
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
832
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:24:14.942990"], ["updated_at", "2016-06-27 09:24:14.942990"]]
|
833
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:14.945000"]]
|
834
|
+
[1m[35m (2.9ms)[0m COMMIT
|
835
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
836
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:24:14.952569"], ["updated_at", "2016-06-27 09:24:14.952569"]]
|
837
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:24:14.951581"], ["receiver_id", 2], ["created_at", "2016-06-27 09:24:14.954938"]]
|
838
|
+
[1m[35m (1.5ms)[0m COMMIT
|
839
|
+
[1m[36mHertz::Notification Load (0.3ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)[0m
|
840
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
841
|
+
[1m[36m (25.5ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
842
|
+
[1m[35m (1.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
843
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
844
|
+
[1m[35m (32.0ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
845
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
846
|
+
[1m[35m (0.1ms)[0m BEGIN
|
847
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:24:15.039124"], ["updated_at", "2016-06-27 09:24:15.039124"]]
|
848
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:24:15.038459"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:15.040548"]]
|
849
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
850
|
+
[1m[35m (0.1ms)[0m BEGIN
|
851
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 1]]
|
852
|
+
[1m[35m (0.9ms)[0m COMMIT
|
853
|
+
[1m[36m (1.9ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
854
|
+
[1m[35m (21.5ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
855
|
+
[1m[36m (2.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
856
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
857
|
+
[1m[36m (24.2ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
858
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
859
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
860
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:24:15.123225"], ["updated_at", "2016-06-27 09:24:15.123225"]]
|
861
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:24:15.125451"]]
|
862
|
+
[1m[35m (3.3ms)[0m COMMIT
|
863
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
864
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-27 09:24:15.133356"], ["id", 1]]
|
865
|
+
[1m[36m (2.5ms)[0m [1mCOMMIT[0m
|
866
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
867
|
+
[1m[36m (32.2ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
868
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
869
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
870
|
+
[1m[35m (1.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
871
|
+
[1m[36m (1.9ms)[0m [1m SELECT schemaname || '.' || tablename
|
872
|
+
FROM pg_tables
|
873
|
+
WHERE
|
874
|
+
tablename !~ '_prt_' AND
|
875
|
+
tablename <> 'schema_migrations' AND
|
876
|
+
schemaname = ANY (current_schemas(false))
|
877
|
+
[0m
|
878
|
+
[1m[35m (1.8ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
879
|
+
[1m[36m (28.2ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
880
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
881
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
882
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:00.593692"], ["updated_at", "2016-06-27 09:26:00.593692"]]
|
883
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
884
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
885
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
886
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:26:00.621902"]]
|
887
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
888
|
+
[1m[35m (0.3ms)[0m BEGIN
|
889
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
890
|
+
[1m[35m (1.2ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
891
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
892
|
+
[1m[35m (14.0ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
893
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
894
|
+
[1m[35m (0.2ms)[0m BEGIN
|
895
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:26:00.650291"], ["updated_at", "2016-06-27 09:26:00.650291"]]
|
896
|
+
[1m[35m (1.3ms)[0m COMMIT
|
897
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
898
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:26:00.654925"]]
|
899
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
900
|
+
[1m[35mHertz::Notification Load (0.4ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
901
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
902
|
+
[1m[35m (16.3ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
903
|
+
[1m[36m (7.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
904
|
+
[1m[35m (1.6ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
905
|
+
[1m[36m (24.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
906
|
+
[1m[35m (2.6ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
907
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
908
|
+
[1m[35m (24.4ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
909
|
+
[1m[36m (3.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
910
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
911
|
+
[1m[36m (18.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
912
|
+
[1m[35m (4.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
913
|
+
[1m[36m (4.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
914
|
+
[1m[35m (19.0ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
915
|
+
[1m[36m (4.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
916
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
917
|
+
[1m[36m (15.4ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
918
|
+
[1m[35m (4.9ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
919
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
920
|
+
[1m[35m (26.8ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
921
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
922
|
+
[1m[35m (0.3ms)[0m BEGIN
|
923
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:26:01.017069"], ["updated_at", "2016-06-27 09:26:01.017069"]]
|
924
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:01.020128"]]
|
925
|
+
[1m[36m (2.0ms)[0m [1mCOMMIT[0m
|
926
|
+
[1m[35m (3.0ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
927
|
+
[1m[36m (19.5ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
928
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
929
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
930
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:01.057771"], ["updated_at", "2016-06-27 09:26:01.057771"]]
|
931
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:01.059437"]]
|
932
|
+
[1m[35m (1.0ms)[0m COMMIT
|
933
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
934
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-27 09:26:01.062910"], ["id", 1]]
|
935
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
936
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
937
|
+
[1m[36m (18.9ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
938
|
+
[1m[35m (3.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
939
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
940
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:01.099657"], ["updated_at", "2016-06-27 09:26:01.099657"]]
|
941
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:26:01.098874"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:01.101488"]]
|
942
|
+
[1m[35m (3.5ms)[0m COMMIT
|
943
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
944
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
|
945
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
946
|
+
[1m[35m (5.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
947
|
+
[1m[36m (23.4ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
948
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
949
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
950
|
+
[1m[35m (13.6ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
951
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
952
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
953
|
+
[1m[36m (19.7ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
954
|
+
[1m[35m (1.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
955
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
956
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:01.205751"], ["updated_at", "2016-06-27 09:26:01.205751"]]
|
957
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:01.208053"]]
|
958
|
+
[1m[35m (1.4ms)[0m COMMIT
|
959
|
+
[1m[36m (3.4ms)[0m [1mBEGIN[0m
|
960
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:01.226416"], ["updated_at", "2016-06-27 09:26:01.226416"]]
|
961
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:26:01.221990"], ["receiver_id", 2], ["created_at", "2016-06-27 09:26:01.228803"]]
|
962
|
+
[1m[35m (1.1ms)[0m COMMIT
|
963
|
+
[1m[36mHertz::Notification Load (1.9ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)[0m
|
964
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
965
|
+
[1m[36m (14.2ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
966
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
967
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
968
|
+
[1m[35m (9.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
969
|
+
[1m[36m (3.3ms)[0m [1m SELECT schemaname || '.' || tablename
|
970
|
+
FROM pg_tables
|
971
|
+
WHERE
|
972
|
+
tablename !~ '_prt_' AND
|
973
|
+
tablename <> 'schema_migrations' AND
|
974
|
+
schemaname = ANY (current_schemas(false))
|
975
|
+
[0m
|
976
|
+
[1m[35m (1.8ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
977
|
+
[1m[36m (36.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
978
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
979
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
980
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:43.490737"], ["updated_at", "2016-06-27 09:26:43.490737"]]
|
981
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:43.495238"]]
|
982
|
+
[1m[35m (1.4ms)[0m COMMIT
|
983
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
984
|
+
[1m[35m (13.7ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
985
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
986
|
+
[1m[35m (0.3ms)[0m BEGIN
|
987
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:26:43.523121"], ["updated_at", "2016-06-27 09:26:43.523121"]]
|
988
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:43.525180"]]
|
989
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
990
|
+
[1m[35m (0.3ms)[0m BEGIN
|
991
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", "2016-06-27 09:26:43.531790"], ["id", 1]]
|
992
|
+
[1m[35m (1.3ms)[0m COMMIT
|
993
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
994
|
+
[1m[35m (28.6ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
995
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
996
|
+
[1m[35m (0.2ms)[0m BEGIN
|
997
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:26:43.575138"], ["updated_at", "2016-06-27 09:26:43.575138"]]
|
998
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:43.576864"]]
|
999
|
+
[1m[36m (2.4ms)[0m [1mCOMMIT[0m
|
1000
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1001
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:26:43.583061"], ["updated_at", "2016-06-27 09:26:43.583061"]]
|
1002
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:26:43.582308"], ["receiver_id", 2], ["created_at", "2016-06-27 09:26:43.585425"]]
|
1003
|
+
[1m[36m (6.3ms)[0m [1mCOMMIT[0m
|
1004
|
+
[1m[35mHertz::Notification Load (0.3ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
|
1005
|
+
[1m[36m (3.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1006
|
+
[1m[35m (13.6ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1007
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1008
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1009
|
+
[1m[36m (12.2ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1010
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1011
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1012
|
+
[1m[35m (20.5ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1013
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1014
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1015
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:26:43.671673"], ["updated_at", "2016-06-27 09:26:43.671673"]]
|
1016
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:26:43.670112"], ["receiver_id", 1], ["created_at", "2016-06-27 09:26:43.673336"]]
|
1017
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
1018
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1019
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 1]]
|
1020
|
+
[1m[35m (1.1ms)[0m COMMIT
|
1021
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1022
|
+
[1m[35m (39.3ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1023
|
+
[1m[36m (2.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1024
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1025
|
+
[1m[36m (15.8ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1026
|
+
[1m[35m (2.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1027
|
+
[1m[36m (2.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1028
|
+
[1m[35m (24.4ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1029
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1030
|
+
[1m[35m (5.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1031
|
+
[1m[36m (33.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1032
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1033
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1034
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:43.920896"], ["updated_at", "2016-06-27 09:26:43.920896"]]
|
1035
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
1036
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1037
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:26:43.924996"]]
|
1038
|
+
[1m[35m (3.8ms)[0m COMMIT
|
1039
|
+
[1m[36mHertz::Notification Load (0.4ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
1040
|
+
[1m[35m (1.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1041
|
+
[1m[36m (16.0ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1042
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1043
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1044
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:26:43.970462"], ["updated_at", "2016-06-27 09:26:43.970462"]]
|
1045
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
1046
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
1047
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1048
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:26:43.975635"]]
|
1049
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
1050
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1051
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
1052
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
1053
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1054
|
+
[1m[35m (13.4ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1055
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1056
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1057
|
+
[1m[36m (25.7ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1058
|
+
[1m[35m (1.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1059
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1060
|
+
[1m[35m (19.0ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1061
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1062
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1063
|
+
[1m[36m (14.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1064
|
+
[1m[35m (5.8ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1065
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1066
|
+
[1m[35m (3.0ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1067
|
+
[1m[36m (1.8ms)[0m [1m SELECT schemaname || '.' || tablename
|
1068
|
+
FROM pg_tables
|
1069
|
+
WHERE
|
1070
|
+
tablename !~ '_prt_' AND
|
1071
|
+
tablename <> 'schema_migrations' AND
|
1072
|
+
schemaname = ANY (current_schemas(false))
|
1073
|
+
[0m
|
1074
|
+
[1m[35m (2.0ms)[0m select table_name from information_schema.views where table_schema = 'hertz_test'
|
1075
|
+
[1m[36m (23.1ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1076
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1077
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1078
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:28:36.171259"], ["updated_at", "2016-06-27 09:28:36.171259"]]
|
1079
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
1080
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1081
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:28:36.189693"]]
|
1082
|
+
[1m[35m (1.2ms)[0m COMMIT
|
1083
|
+
[1m[36mHertz::Notification Load (0.4ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
1084
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1085
|
+
[1m[36m (12.4ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1086
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1087
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1088
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-27 09:28:36.223989"], ["updated_at", "2016-06-27 09:28:36.223989"]]
|
1089
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
1090
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
1091
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1092
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-27 09:28:36.231659"]]
|
1093
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
1094
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1095
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
1096
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
1097
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1098
|
+
[1m[35m (21.7ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1099
|
+
[1m[36m (2.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1100
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1101
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:28:36.283777"], ["updated_at", "2016-06-27 09:28:36.283777"]]
|
1102
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:28:36.287274"]]
|
1103
|
+
[1m[36m (3.8ms)[0m [1mCOMMIT[0m
|
1104
|
+
[1m[35m (3.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1105
|
+
[1m[36m (14.7ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1106
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1107
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1108
|
+
[1m[35m (17.3ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1109
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1110
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1111
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:28:36.350743"], ["updated_at", "2016-06-27 09:28:36.350743"]]
|
1112
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:28:36.354124"]]
|
1113
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
1114
|
+
[1m[35m (0.8ms)[0m BEGIN
|
1115
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", "2016-06-27 09:28:36.358394"], ["id", 1]]
|
1116
|
+
[1m[35m (1.2ms)[0m COMMIT
|
1117
|
+
[1m[36m (1.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1118
|
+
[1m[35m (23.7ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1119
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1120
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1121
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:28:36.400693"], ["updated_at", "2016-06-27 09:28:36.400693"]]
|
1122
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-27 09:28:36.402624"]]
|
1123
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
1124
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1125
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:28:36.410550"], ["updated_at", "2016-06-27 09:28:36.410550"]]
|
1126
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:28:36.409391"], ["receiver_id", 2], ["created_at", "2016-06-27 09:28:36.413441"]]
|
1127
|
+
[1m[36m (2.5ms)[0m [1mCOMMIT[0m
|
1128
|
+
[1m[35mHertz::Notification Load (0.4ms)[0m SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
|
1129
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1130
|
+
[1m[35m (14.2ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1131
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1132
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1133
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-27 09:28:36.445614"], ["updated_at", "2016-06-27 09:28:36.445614"]]
|
1134
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-27 09:28:36.444664"], ["receiver_id", 1], ["created_at", "2016-06-27 09:28:36.447056"]]
|
1135
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
1136
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1137
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2[0m [["read_at", nil], ["id", 1]]
|
1138
|
+
[1m[35m (1.0ms)[0m COMMIT
|
1139
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1140
|
+
[1m[35m (12.7ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1141
|
+
[1m[36m (1.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1142
|
+
[1m[35m (1.8ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1143
|
+
[1m[36m (21.7ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1144
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1145
|
+
[1m[36m (2.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1146
|
+
[1m[35m (22.8ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1147
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1148
|
+
[1m[35m (2.4ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1149
|
+
[1m[36m (36.8ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1150
|
+
[1m[35m (1.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1151
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1152
|
+
[1m[35m (18.9ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1153
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1154
|
+
[1m[35m (2.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1155
|
+
[1m[36m (14.9ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1156
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1157
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL[0m
|
1158
|
+
[1m[35m (13.0ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;
|
1159
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL[0m
|
1160
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" DISABLE TRIGGER ALL
|
1161
|
+
[1m[36m (12.8ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_notification_deliveries" RESTART IDENTITY CASCADE;[0m
|
1162
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notification_deliveries" ENABLE TRIGGER ALL
|
1163
|
+
[1m[36mActiveRecord::SchemaMigration Load (4.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1164
|
+
[1m[36m (131.3ms)[0m [1mDROP DATABASE IF EXISTS "hertz_test"[0m
|
1165
|
+
[1m[35m (601.3ms)[0m CREATE DATABASE "hertz_test" ENCODING = 'utf8'
|
1166
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1167
|
+
[1m[35mSQL (19.5ms)[0m CREATE EXTENSION IF NOT EXISTS "hstore"
|
1168
|
+
[1m[36m (9.2ms)[0m [1mCREATE TABLE "hertz_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) [0m
|
1169
|
+
[1m[35m (3.7ms)[0m CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_deliveries" USING btree ("notification_id", "courier")
|
1170
|
+
[1m[36m (3.3ms)[0m [1mCREATE INDEX "index_hertz_deliveries_on_notification_id" ON "hertz_deliveries" USING btree ("notification_id")[0m
|
1171
|
+
[1m[35m (6.1ms)[0m CREATE TABLE "hertz_notifications" ("id" serial primary key, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
|
1172
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1173
|
+
[1m[35m (2.7ms)[0m ALTER TABLE "hertz_deliveries" ADD CONSTRAINT "fk_rails_eefe07f4cd"
|
1174
|
+
FOREIGN KEY ("notification_id")
|
1175
|
+
REFERENCES "hertz_notifications" ("id")
|
1176
|
+
ON DELETE CASCADE
|
1177
|
+
[1m[36m (4.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
1178
|
+
[1m[35m (3.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1179
|
+
[1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1180
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160628084413')
|
1181
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160627084119')[0m
|
1182
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
|
1183
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160508094342')[0m
|
1184
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
|
1185
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160418122437')[0m
|
1186
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1187
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL[0m
|
1188
|
+
[1m[35m (1.7ms)[0m SELECT schemaname || '.' || tablename
|
1189
|
+
FROM pg_tables
|
1190
|
+
WHERE
|
1191
|
+
tablename !~ '_prt_' AND
|
1192
|
+
tablename <> 'schema_migrations' AND
|
1193
|
+
schemaname = ANY (current_schemas(false))
|
1194
|
+
|
1195
|
+
[1m[36m (1.5ms)[0m [1mselect table_name from information_schema.views where table_schema = 'hertz_test'[0m
|
1196
|
+
[1m[35m (18.9ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
|
1197
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL[0m
|
1198
|
+
[1m[35m (1.7ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1199
|
+
[1m[36m (14.1ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1200
|
+
[1m[35m (4.7ms)[0m ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL
|
1201
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL[0m
|
1202
|
+
[1m[35m (26.1ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
|
1203
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL[0m
|
1204
|
+
[1m[35m (3.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1205
|
+
[1m[36m (22.1ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1206
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1207
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1208
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:46.354003"], ["updated_at", "2016-06-29 14:00:46.354003"]]
|
1209
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
1210
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1211
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-29 14:00:46.371232"]]
|
1212
|
+
[1m[35m (10.6ms)[0m COMMIT
|
1213
|
+
[1m[36mHertz::Notification Load (0.2ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2[0m [["receiver_id", 1], ["receiver_type", "User"]]
|
1214
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1215
|
+
[1m[36m (13.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1216
|
+
[1m[35m (1.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1217
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1218
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:46.433577"], ["updated_at", "2016-06-29 14:00:46.433577"]]
|
1219
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
1220
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
1221
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1222
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-29 14:00:46.445497"]]
|
1223
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
1224
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1225
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
1226
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
|
1227
|
+
[1m[36m (1.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL[0m
|
1228
|
+
[1m[35m (23.6ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
|
1229
|
+
[1m[36m (1.8ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL[0m
|
1230
|
+
[1m[35m (2.0ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1231
|
+
[1m[36m (27.9ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1232
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1233
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL[0m
|
1234
|
+
[1m[35m (16.0ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
|
1235
|
+
[1m[36m (1.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL[0m
|
1236
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1237
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2016-06-29 14:00:46.888727"], ["updated_at", "2016-06-29 14:00:46.888727"]]
|
1238
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-29 14:00:46.900437"]]
|
1239
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
1240
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1241
|
+
[1m[36m (29.4ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1242
|
+
[1m[35m (4.7ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1243
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1244
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:46.945283"], ["updated_at", "2016-06-29 14:00:46.945283"]]
|
1245
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-29 14:00:46.947285"]]
|
1246
|
+
[1m[35m (1.5ms)[0m COMMIT
|
1247
|
+
[1m[36mHertz::Delivery Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT 1[0m [["notification_id", 1], ["courier", "test"]]
|
1248
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1249
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["notification_id", 1], ["courier", "test"], ["created_at", "2016-06-29 14:00:46.987659"]]
|
1250
|
+
[1m[35m (0.9ms)[0m COMMIT
|
1251
|
+
[1m[36mHertz::Delivery Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT 1[0m [["notification_id", 1], ["courier", "test"]]
|
1252
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1253
|
+
[1m[36m (15.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1254
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1255
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1256
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:47.014791"], ["updated_at", "2016-06-29 14:00:47.014791"]]
|
1257
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-29 14:00:47.016261"]]
|
1258
|
+
[1m[35m (0.8ms)[0m COMMIT
|
1259
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1[0m [["notification_id", 1]]
|
1260
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1261
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_deliveries" ("courier", "notification_id", "created_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["courier", "test"], ["notification_id", 1], ["created_at", "2016-06-29 14:00:47.021180"]]
|
1262
|
+
[1m[35m (1.0ms)[0m COMMIT
|
1263
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1[0m [["notification_id", 1]]
|
1264
|
+
[1m[35m (1.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1265
|
+
[1m[36m (17.6ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1266
|
+
[1m[35m (5.4ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1267
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1268
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:47.062390"], ["updated_at", "2016-06-29 14:00:47.062390"]]
|
1269
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-29 14:00:47.065764"]]
|
1270
|
+
[1m[35m (0.9ms)[0m COMMIT
|
1271
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1272
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:47.069566"], ["updated_at", "2016-06-29 14:00:47.069566"]]
|
1273
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-29 14:00:47.068974"], ["receiver_id", 2], ["created_at", "2016-06-29 14:00:47.072019"]]
|
1274
|
+
[1m[35m (3.5ms)[0m COMMIT
|
1275
|
+
[1m[36mHertz::Notification Load (0.7ms)[0m [1mSELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)[0m
|
1276
|
+
[1m[35m (2.9ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1277
|
+
[1m[36m (17.5ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1278
|
+
[1m[35m (1.0ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1279
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1280
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:47.111078"], ["updated_at", "2016-06-29 14:00:47.111078"]]
|
1281
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-29 14:00:47.112595"]]
|
1282
|
+
[1m[35m (0.9ms)[0m COMMIT
|
1283
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1284
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-29 14:00:47.116319"], ["id", 1]]
|
1285
|
+
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
|
1286
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1287
|
+
[1m[36m (12.5ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1288
|
+
[1m[35m (2.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1289
|
+
[1m[36m (4.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL[0m
|
1290
|
+
[1m[35m (39.8ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
|
1291
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL[0m
|
1292
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1293
|
+
[1m[36m (67.3ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1294
|
+
[1m[35m (3.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1295
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1296
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-29 14:00:47.272402"], ["updated_at", "2016-06-29 14:00:47.272402"]]
|
1297
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-29 14:00:47.271626"], ["receiver_id", 1], ["created_at", "2016-06-29 14:00:47.274093"]]
|
1298
|
+
[1m[35m (1.0ms)[0m COMMIT
|
1299
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1300
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
|
1301
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
1302
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
|
1303
|
+
[1m[36m (43.2ms)[0m [1mTRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;[0m
|
1304
|
+
[1m[35m (10.5ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
|
1305
|
+
[1m[36m (1.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL[0m
|
1306
|
+
[1m[35m (20.9ms)[0m TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
|
1307
|
+
[1m[36m (3.5ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL[0m
|
1308
|
+
[1m[35m (116.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "timeful_test"[0m
|
1309
|
+
[1m[35m (351.1ms)[0m [1m[35mCREATE DATABASE "timeful_test" ENCODING = 'utf8'[0m
|
1310
|
+
[1m[35mSQL (0.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1311
|
+
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE "timeful_activities" ("id" serial primary key, "type" character varying NOT NULL, "object_type" character varying NOT NULL, "object_id" integer NOT NULL, "actor_type" character varying NOT NULL, "actor_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1312
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_actor_type_and_actor_id" ON "timeful_activities" USING btree ("actor_type", "actor_id")[0m
|
1313
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_object_type_and_object_id" ON "timeful_activities" USING btree ("object_type", "object_id")[0m
|
1314
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "timeful_feed_items" ("id" serial primary key, "feedable_type" character varying NOT NULL, "feedable_id" integer NOT NULL, "activity_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1315
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE INDEX "index_timeful_feed_items_on_feedable_type_and_feedable_id" ON "timeful_feed_items" USING btree ("feedable_type", "feedable_id")[0m
|
1316
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "timeful_feed_items" ADD CONSTRAINT "fk_rails_9bc442415c"
|
1317
|
+
FOREIGN KEY ("activity_id")
|
1318
|
+
REFERENCES "timeful_activities" ("id")
|
1319
|
+
ON DELETE CASCADE[0m
|
1320
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
1321
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
1322
|
+
[1m[35m (1.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20160927155215')[0m
|
1323
|
+
[1m[35m (1.2ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES ('20160927141815');
|
1324
|
+
|
1325
|
+
[0m
|
1326
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1327
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
1328
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1329
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2016-09-27 16:03:49 UTC], ["updated_at", 2016-09-27 16:03:49 UTC]]
|
1330
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1331
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
1332
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1333
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1334
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1335
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1336
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
1337
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1338
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
1339
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1340
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
1341
|
+
[1m[35m (130.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "timeful_test"[0m
|
1342
|
+
[1m[35m (336.8ms)[0m [1m[35mCREATE DATABASE "timeful_test" ENCODING = 'utf8'[0m
|
1343
|
+
[1m[35mSQL (0.5ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1344
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE "timeful_activities" ("id" serial primary key, "type" character varying NOT NULL, "object_type" character varying NOT NULL, "object_id" integer NOT NULL, "actor_type" character varying NOT NULL, "actor_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1345
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_actor_type_and_actor_id" ON "timeful_activities" USING btree ("actor_type", "actor_id")[0m
|
1346
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_object_type_and_object_id" ON "timeful_activities" USING btree ("object_type", "object_id")[0m
|
1347
|
+
[1m[35m (14.6ms)[0m [1m[35mCREATE TABLE "timeful_feed_items" ("id" serial primary key, "feedable_type" character varying NOT NULL, "feedable_id" integer NOT NULL, "activity_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1348
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE INDEX "index_timeful_feed_items_on_feedable_type_and_feedable_id" ON "timeful_feed_items" USING btree ("feedable_type", "feedable_id")[0m
|
1349
|
+
[1m[35m (5.1ms)[0m [1m[35mALTER TABLE "timeful_feed_items" ADD CONSTRAINT "fk_rails_9bc442415c"
|
1350
|
+
FOREIGN KEY ("activity_id")
|
1351
|
+
REFERENCES "timeful_activities" ("id")
|
1352
|
+
ON DELETE CASCADE[0m
|
1353
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
1354
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
1355
|
+
[1m[35m (1.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20160927155215')[0m
|
1356
|
+
[1m[35m (1.2ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES ('20160927141815');
|
1357
|
+
|
1358
|
+
[0m
|
1359
|
+
[1m[35m (13.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1360
|
+
[1m[36mActiveRecord::InternalMetadata Load (5.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
1361
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1362
|
+
[1m[35mSQL (1.9ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2016-09-27 16:04:02 UTC], ["updated_at", 2016-09-27 16:04:02 UTC]]
|
1363
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1364
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
1365
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
1366
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1367
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1368
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1369
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1370
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
1371
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1372
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
1373
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1374
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
1375
|
+
[1m[35m (119.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "timeful_test"[0m
|
1376
|
+
[1m[35m (342.7ms)[0m [1m[35mCREATE DATABASE "timeful_test" ENCODING = 'utf8'[0m
|
1377
|
+
[1m[35mSQL (1.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1378
|
+
[1m[35m (15.1ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1379
|
+
[1m[35m (16.8ms)[0m [1m[35mCREATE TABLE "timeful_activities" ("id" serial primary key, "type" character varying NOT NULL, "object_type" character varying NOT NULL, "object_id" integer NOT NULL, "actor_type" character varying NOT NULL, "actor_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1380
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_actor_type_and_actor_id" ON "timeful_activities" USING btree ("actor_type", "actor_id")[0m
|
1381
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_object_type_and_object_id" ON "timeful_activities" USING btree ("object_type", "object_id")[0m
|
1382
|
+
[1m[35m (16.3ms)[0m [1m[35mCREATE TABLE "timeful_feed_items" ("id" serial primary key, "feedable_type" character varying NOT NULL, "feedable_id" integer NOT NULL, "activity_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1383
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE INDEX "index_timeful_feed_items_on_feedable_type_and_feedable_id" ON "timeful_feed_items" USING btree ("feedable_type", "feedable_id")[0m
|
1384
|
+
[1m[35m (20.8ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1385
|
+
[1m[35m (8.5ms)[0m [1m[35mALTER TABLE "timeful_feed_items" ADD CONSTRAINT "fk_rails_9bc442415c"
|
1386
|
+
FOREIGN KEY ("activity_id")
|
1387
|
+
REFERENCES "timeful_activities" ("id")
|
1388
|
+
ON DELETE CASCADE[0m
|
1389
|
+
[1m[35m (15.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
1390
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
1391
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20160927160031')[0m
|
1392
|
+
[1m[35m (1.7ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES ('20160927141815'), ('20160927155215'), ('20160927160026');
|
1393
|
+
|
1394
|
+
[0m
|
1395
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1396
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
1397
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1398
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2016-09-27 16:04:15 UTC], ["updated_at", 2016-09-27 16:04:15 UTC]]
|
1399
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
1400
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
1401
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1402
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
1403
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1404
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
1405
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1406
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
1407
|
+
[1m[35m (1.7ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1408
|
+
FROM pg_tables
|
1409
|
+
WHERE
|
1410
|
+
tablename !~ '_prt_' AND
|
1411
|
+
tablename <> 'schema_migrations' AND
|
1412
|
+
schemaname = ANY (current_schemas(false))
|
1413
|
+
[0m
|
1414
|
+
[1m[35m (3.6ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1415
|
+
[1m[35m (30.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1416
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1417
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1418
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1419
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1420
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1421
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
1422
|
+
[1m[35m (20.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1423
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1424
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1425
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
1426
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1427
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1428
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1429
|
+
[1m[35m (21.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1430
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1431
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1432
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1433
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1434
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1435
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1436
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1437
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
1438
|
+
[1m[35m (1.9ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1439
|
+
FROM pg_tables
|
1440
|
+
WHERE
|
1441
|
+
tablename !~ '_prt_' AND
|
1442
|
+
tablename <> 'schema_migrations' AND
|
1443
|
+
schemaname = ANY (current_schemas(false))
|
1444
|
+
[0m
|
1445
|
+
[1m[35m (2.4ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1446
|
+
[1m[35m (55.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1447
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1448
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1449
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
1450
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1451
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1452
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1453
|
+
[1m[35m (22.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1454
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1455
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1456
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
1457
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1458
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1459
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
1460
|
+
[1m[35m (31.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1461
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
1462
|
+
[1m[35m (3.4ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1463
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1464
|
+
[1m[35m (3.5ms)[0m [1m[35mBEGIN[0m
|
1465
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1466
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1467
|
+
[1m[35m (23.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1468
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1469
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1470
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
1471
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1472
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1473
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1474
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
1475
|
+
[1m[35m (2.3ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1476
|
+
FROM pg_tables
|
1477
|
+
WHERE
|
1478
|
+
tablename !~ '_prt_' AND
|
1479
|
+
tablename <> 'schema_migrations' AND
|
1480
|
+
schemaname = ANY (current_schemas(false))
|
1481
|
+
[0m
|
1482
|
+
[1m[35m (1.6ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1483
|
+
[1m[35m (29.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1484
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1485
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1486
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1487
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TEMPORARY TABLE "actor_models" ("id" serial primary key)[0m
|
1488
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1489
|
+
[1m[35mSQL (2.8ms)[0m [1m[32mINSERT INTO "actor_models" DEFAULT VALUES RETURNING "id"[0m
|
1490
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1491
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1492
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1493
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1494
|
+
[1m[35m (40.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1495
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
1496
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1497
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1498
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1499
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1500
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1501
|
+
[1m[35m (5.7ms)[0m [1m[35mCOMMIT[0m
|
1502
|
+
[1m[35m (1.6ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1503
|
+
FROM pg_tables
|
1504
|
+
WHERE
|
1505
|
+
tablename !~ '_prt_' AND
|
1506
|
+
tablename <> 'schema_migrations' AND
|
1507
|
+
schemaname = ANY (current_schemas(false))
|
1508
|
+
[0m
|
1509
|
+
[1m[35m (1.8ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1510
|
+
[1m[35m (28.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1511
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1512
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1513
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
1514
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
1515
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE TEMPORARY TABLE "actor_models" ("id" serial primary key)[0m
|
1516
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1517
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "actor_models" DEFAULT VALUES RETURNING "id"[0m
|
1518
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1519
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1520
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1521
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1522
|
+
[1m[35m (21.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1523
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1524
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1525
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1526
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1527
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
1528
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1529
|
+
[1m[35m (3.5ms)[0m [1m[35mCOMMIT[0m
|
1530
|
+
[1m[35m (2.2ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1531
|
+
FROM pg_tables
|
1532
|
+
WHERE
|
1533
|
+
tablename !~ '_prt_' AND
|
1534
|
+
tablename <> 'schema_migrations' AND
|
1535
|
+
schemaname = ANY (current_schemas(false))
|
1536
|
+
[0m
|
1537
|
+
[1m[35m (4.4ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1538
|
+
[1m[35m (33.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1539
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1540
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1541
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
1542
|
+
[1m[35m (2.2ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
1543
|
+
[1m[35m (1.6ms)[0m [1m[35mBEGIN[0m
|
1544
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:04:29 UTC], ["updated_at", 2016-09-27 20:04:29 UTC]]
|
1545
|
+
[1m[35m (4.0ms)[0m [1m[35mCOMMIT[0m
|
1546
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
1547
|
+
[1m[35mSQL (1.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:04:29 UTC], ["updated_at", 2016-09-27 20:04:29 UTC]]
|
1548
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
1549
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
1550
|
+
[1m[35mSQL (2.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 20:04:30 UTC], ["updated_at", 2016-09-27 20:04:30 UTC]]
|
1551
|
+
[1m[35m (4.2ms)[0m [1m[35mCOMMIT[0m
|
1552
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
1553
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
1554
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1555
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
1556
|
+
[1m[35m (58.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1557
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1558
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1559
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
1560
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1561
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1562
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1563
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
1564
|
+
[1m[35m (1.5ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1565
|
+
FROM pg_tables
|
1566
|
+
WHERE
|
1567
|
+
tablename !~ '_prt_' AND
|
1568
|
+
tablename <> 'schema_migrations' AND
|
1569
|
+
schemaname = ANY (current_schemas(false))
|
1570
|
+
[0m
|
1571
|
+
[1m[35m (1.4ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1572
|
+
[1m[35m (23.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1573
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1574
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1575
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1576
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1577
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:05:37 UTC], ["updated_at", 2016-09-27 20:05:37 UTC]]
|
1578
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1579
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
1580
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1581
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
1582
|
+
[1m[35m (46.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1583
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
1584
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1585
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
1586
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1587
|
+
[1m[35m (2.0ms)[0m [1m[35mBEGIN[0m
|
1588
|
+
[1m[35m (4.8ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1589
|
+
[1m[35m (128.1ms)[0m [1m[35mCOMMIT[0m
|
1590
|
+
[1m[35m (4.4ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1591
|
+
FROM pg_tables
|
1592
|
+
WHERE
|
1593
|
+
tablename !~ '_prt_' AND
|
1594
|
+
tablename <> 'schema_migrations' AND
|
1595
|
+
schemaname = ANY (current_schemas(false))
|
1596
|
+
[0m
|
1597
|
+
[1m[35m (3.6ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1598
|
+
[1m[35m (97.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1599
|
+
[1m[35m (3.4ms)[0m [1m[35mBEGIN[0m
|
1600
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1601
|
+
[1m[35m (11.3ms)[0m [1m[35mCOMMIT[0m
|
1602
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
1603
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:06:12 UTC], ["updated_at", 2016-09-27 20:06:12 UTC]]
|
1604
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
1605
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1606
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:06:12 UTC], ["updated_at", 2016-09-27 20:06:12 UTC]]
|
1607
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:06:12 UTC], ["updated_at", 2016-09-27 20:06:12 UTC]]
|
1608
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:06:12 UTC], ["updated_at", 2016-09-27 20:06:12 UTC]]
|
1609
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
1610
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1611
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1612
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
1613
|
+
[1m[35m (20.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1614
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1615
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1616
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
1617
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1618
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
1619
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1620
|
+
[1m[35m (4.7ms)[0m [1m[35mCOMMIT[0m
|
1621
|
+
[1m[35m (1.7ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1622
|
+
FROM pg_tables
|
1623
|
+
WHERE
|
1624
|
+
tablename !~ '_prt_' AND
|
1625
|
+
tablename <> 'schema_migrations' AND
|
1626
|
+
schemaname = ANY (current_schemas(false))
|
1627
|
+
[0m
|
1628
|
+
[1m[35m (7.4ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1629
|
+
[1m[35m (23.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1630
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1631
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1632
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
1633
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1634
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:07:26 UTC], ["updated_at", 2016-09-27 20:07:26 UTC]]
|
1635
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1636
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1637
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:07:26 UTC], ["updated_at", 2016-09-27 20:07:26 UTC]]
|
1638
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:07:26 UTC], ["updated_at", 2016-09-27 20:07:26 UTC]]
|
1639
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:07:26 UTC], ["updated_at", 2016-09-27 20:07:26 UTC]]
|
1640
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:07:26 UTC], ["updated_at", 2016-09-27 20:07:26 UTC]]
|
1641
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1642
|
+
[1m[36mTimeful::FeedItem Load (0.5ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1643
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1644
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1645
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1646
|
+
[1m[35m (21.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1647
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1648
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1649
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1650
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1651
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1652
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1653
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
1654
|
+
[1m[35m (2.4ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1655
|
+
FROM pg_tables
|
1656
|
+
WHERE
|
1657
|
+
tablename !~ '_prt_' AND
|
1658
|
+
tablename <> 'schema_migrations' AND
|
1659
|
+
schemaname = ANY (current_schemas(false))
|
1660
|
+
[0m
|
1661
|
+
[1m[35m (1.8ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1662
|
+
[1m[35m (53.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1663
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1664
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1665
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1666
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1667
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1668
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
1669
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1670
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1671
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1672
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1673
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1674
|
+
[1m[35m (3.8ms)[0m [1m[35mCOMMIT[0m
|
1675
|
+
[1m[36mTimeful::FeedItem Load (0.9ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1676
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
1677
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1678
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
1679
|
+
[1m[35m (42.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1680
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1681
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1682
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
1683
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1684
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1685
|
+
[1m[35m (3.5ms)[0m [1m[35mCOMMIT[0m
|
1686
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1687
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1688
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1689
|
+
[1m[35mSQL (2.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1690
|
+
[1m[35mSQL (2.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1691
|
+
[1m[35m (12.8ms)[0m [1m[35mCOMMIT[0m
|
1692
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1693
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1694
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1695
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1696
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 20:09:38 UTC], ["updated_at", 2016-09-27 20:09:38 UTC]]
|
1697
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1698
|
+
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1699
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1700
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1701
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1702
|
+
[1m[35m (42.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1703
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1704
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1705
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
1706
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1707
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1708
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1709
|
+
[1m[35m (188.9ms)[0m [1m[35mCOMMIT[0m
|
1710
|
+
[1m[35m (4.7ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1711
|
+
FROM pg_tables
|
1712
|
+
WHERE
|
1713
|
+
tablename !~ '_prt_' AND
|
1714
|
+
tablename <> 'schema_migrations' AND
|
1715
|
+
schemaname = ANY (current_schemas(false))
|
1716
|
+
[0m
|
1717
|
+
[1m[35m (4.6ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1718
|
+
[1m[35m (115.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1719
|
+
[1m[35m (2.0ms)[0m [1m[35mBEGIN[0m
|
1720
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1721
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
1722
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
1723
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1724
|
+
[1m[35m (4.2ms)[0m [1m[35mCOMMIT[0m
|
1725
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1726
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1727
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1728
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1729
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1730
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
1731
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1732
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1733
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1734
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1735
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1736
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1737
|
+
[1m[36mTimeful::FeedItem Load (0.3ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1738
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1739
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1740
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
1741
|
+
[1m[35m (32.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1742
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1743
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1744
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1745
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1746
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1747
|
+
[1m[35m (3.2ms)[0m [1m[35mCOMMIT[0m
|
1748
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1749
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1750
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1751
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1752
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:09:47 UTC], ["updated_at", 2016-09-27 20:09:47 UTC]]
|
1753
|
+
[1m[35m (7.4ms)[0m [1m[35mCOMMIT[0m
|
1754
|
+
[1m[36mTimeful::FeedItem Load (0.7ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1755
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1756
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1757
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1758
|
+
[1m[35m (53.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1759
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1760
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1761
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
1762
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1763
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1764
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1765
|
+
[1m[35m (6.4ms)[0m [1m[35mCOMMIT[0m
|
1766
|
+
[1m[35m (2.9ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1767
|
+
FROM pg_tables
|
1768
|
+
WHERE
|
1769
|
+
tablename !~ '_prt_' AND
|
1770
|
+
tablename <> 'schema_migrations' AND
|
1771
|
+
schemaname = ANY (current_schemas(false))
|
1772
|
+
[0m
|
1773
|
+
[1m[35m (6.8ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1774
|
+
[1m[35m (22.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1775
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1776
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1777
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
1778
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
1779
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1780
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1781
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
1782
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1783
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1784
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1785
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1786
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1787
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
1788
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
1789
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1790
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1791
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1792
|
+
[1m[35m (55.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1793
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1794
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1795
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
1796
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1797
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1798
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1799
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1800
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1801
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1802
|
+
[1m[35mSQL (2.5ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1803
|
+
[1m[35mSQL (3.7ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1804
|
+
[1m[35m (4.3ms)[0m [1m[35mCOMMIT[0m
|
1805
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1806
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1807
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1808
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1809
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1810
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1811
|
+
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1812
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1813
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1814
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1815
|
+
[1m[35m (28.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1816
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1817
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1818
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1819
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1820
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:09 UTC], ["updated_at", 2016-09-27 20:10:09 UTC]]
|
1821
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
1822
|
+
[1m[35m (3.8ms)[0m [1m[35mBEGIN[0m
|
1823
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:10 UTC], ["updated_at", 2016-09-27 20:10:10 UTC]]
|
1824
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:10 UTC], ["updated_at", 2016-09-27 20:10:10 UTC]]
|
1825
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:10:10 UTC], ["updated_at", 2016-09-27 20:10:10 UTC]]
|
1826
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:10:10 UTC], ["updated_at", 2016-09-27 20:10:10 UTC]]
|
1827
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1828
|
+
[1m[36mTimeful::FeedItem Load (2.2ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1829
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
1830
|
+
[1m[35m (5.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1831
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1832
|
+
[1m[35m (35.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1833
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1834
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1835
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1836
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1837
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1838
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
1839
|
+
[1m[35m (84.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1840
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1841
|
+
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1842
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
1843
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1844
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1845
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
1846
|
+
[1m[35m (92.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1847
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1848
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1849
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
1850
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1851
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1852
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1853
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
1854
|
+
[1m[35m (2.6ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1855
|
+
FROM pg_tables
|
1856
|
+
WHERE
|
1857
|
+
tablename !~ '_prt_' AND
|
1858
|
+
tablename <> 'schema_migrations' AND
|
1859
|
+
schemaname = ANY (current_schemas(false))
|
1860
|
+
[0m
|
1861
|
+
[1m[35m (1.8ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1862
|
+
[1m[35m (41.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1863
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1864
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1865
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
1866
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1867
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1868
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1869
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1870
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1871
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1872
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1873
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1874
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1875
|
+
[1m[36mTimeful::FeedItem Load (0.6ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1876
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1877
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1878
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1879
|
+
[1m[35m (22.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1880
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1881
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1882
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1883
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1884
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1885
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1886
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1887
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1888
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1889
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1890
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1891
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
1892
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1893
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1894
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1895
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1896
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 20:10:25 UTC], ["updated_at", 2016-09-27 20:10:25 UTC]]
|
1897
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1898
|
+
[1m[36mTimeful::FeedItem Load (0.7ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1899
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
1900
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1901
|
+
[1m[35m (4.4ms)[0m [1m[35mCOMMIT[0m
|
1902
|
+
[1m[35m (132.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1903
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
1904
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1905
|
+
[1m[35m (11.9ms)[0m [1m[35mCOMMIT[0m
|
1906
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1907
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1908
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1909
|
+
[1m[35m (4.6ms)[0m [1m[35mCOMMIT[0m
|
1910
|
+
[1m[35m (2.4ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1911
|
+
FROM pg_tables
|
1912
|
+
WHERE
|
1913
|
+
tablename !~ '_prt_' AND
|
1914
|
+
tablename <> 'schema_migrations' AND
|
1915
|
+
schemaname = ANY (current_schemas(false))
|
1916
|
+
[0m
|
1917
|
+
[1m[35m (5.2ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1918
|
+
[1m[35m (27.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1919
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1920
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1921
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1922
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1923
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1924
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1925
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1926
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1927
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1928
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1929
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1930
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1931
|
+
[1m[36mTimeful::FeedItem Load (0.5ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1932
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1933
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1934
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1935
|
+
[1m[35m (25.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1936
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
1937
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1938
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1939
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1940
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1941
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1942
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1943
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1944
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1945
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1946
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1947
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1948
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1949
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1950
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1951
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1952
|
+
[1m[35mSQL (7.3ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 20:11:41 UTC], ["updated_at", 2016-09-27 20:11:41 UTC]]
|
1953
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
1954
|
+
[1m[36mTimeful::FeedItem Load (3.5ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1955
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1956
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1957
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
1958
|
+
[1m[35m (38.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1959
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1960
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1961
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1962
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1963
|
+
[1m[35m (1.8ms)[0m [1m[35mBEGIN[0m
|
1964
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1965
|
+
[1m[35m (193.7ms)[0m [1m[35mCOMMIT[0m
|
1966
|
+
[1m[35m (4.9ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
1967
|
+
FROM pg_tables
|
1968
|
+
WHERE
|
1969
|
+
tablename !~ '_prt_' AND
|
1970
|
+
tablename <> 'schema_migrations' AND
|
1971
|
+
schemaname = ANY (current_schemas(false))
|
1972
|
+
[0m
|
1973
|
+
[1m[35m (3.9ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
1974
|
+
[1m[35m (80.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1975
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
1976
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
1977
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
1978
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
1979
|
+
[1m[35mSQL (2.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1980
|
+
[1m[35m (3.6ms)[0m [1m[35mCOMMIT[0m
|
1981
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
1982
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1983
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1984
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1985
|
+
[1m[35mSQL (1.9ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1986
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
1987
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
1988
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1989
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1990
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1991
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
1992
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
1993
|
+
[1m[36mTimeful::FeedItem Load (0.9ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" ASC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
1994
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1995
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
1996
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1997
|
+
[1m[35m (41.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
1998
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
1999
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2000
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2001
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2002
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
2003
|
+
[1m[35m (3.1ms)[0m [1m[35mCOMMIT[0m
|
2004
|
+
[1m[35m (2.1ms)[0m [1m[35mBEGIN[0m
|
2005
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
2006
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
2007
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
2008
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:11:51 UTC], ["updated_at", 2016-09-27 20:11:51 UTC]]
|
2009
|
+
[1m[35m (7.7ms)[0m [1m[35mCOMMIT[0m
|
2010
|
+
[1m[36mTimeful::FeedItem Load (1.3ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" ASC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2011
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2012
|
+
[1m[35m (8.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2013
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2014
|
+
[1m[35m (53.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2015
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2016
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2017
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2018
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2019
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2020
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2021
|
+
[1m[35m (4.9ms)[0m [1m[35mCOMMIT[0m
|
2022
|
+
[1m[35m (6.2ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2023
|
+
FROM pg_tables
|
2024
|
+
WHERE
|
2025
|
+
tablename !~ '_prt_' AND
|
2026
|
+
tablename <> 'schema_migrations' AND
|
2027
|
+
schemaname = ANY (current_schemas(false))
|
2028
|
+
[0m
|
2029
|
+
[1m[35m (1.8ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2030
|
+
[1m[35m (61.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2031
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2032
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2033
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2034
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2035
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2036
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2037
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2038
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2039
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2040
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2041
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2042
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
2043
|
+
[1m[36mTimeful::FeedItem Load (0.6ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2044
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2045
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2046
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2047
|
+
[1m[35m (59.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2048
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
2049
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2050
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
2051
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2052
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2053
|
+
[1m[35m (3.7ms)[0m [1m[35mCOMMIT[0m
|
2054
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2055
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2056
|
+
[1m[35mSQL (2.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2057
|
+
[1m[35mSQL (2.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2058
|
+
[1m[35mSQL (3.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2059
|
+
[1m[35m (6.8ms)[0m [1m[35mCOMMIT[0m
|
2060
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2061
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2062
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2063
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2064
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 20:11:57 UTC], ["updated_at", 2016-09-27 20:11:57 UTC]]
|
2065
|
+
[1m[35m (6.6ms)[0m [1m[35mCOMMIT[0m
|
2066
|
+
[1m[36mTimeful::FeedItem Load (1.3ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2067
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2068
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2069
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2070
|
+
[1m[35m (28.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2071
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2072
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2073
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2074
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2075
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2076
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2077
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2078
|
+
[1m[35m (8.1ms)[0m [1m[35mCOMMIT[0m
|
2079
|
+
[1m[35m (4.0ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2080
|
+
FROM pg_tables
|
2081
|
+
WHERE
|
2082
|
+
tablename !~ '_prt_' AND
|
2083
|
+
tablename <> 'schema_migrations' AND
|
2084
|
+
schemaname = ANY (current_schemas(false))
|
2085
|
+
[0m
|
2086
|
+
[1m[35m (1.8ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2087
|
+
[1m[35m (56.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2088
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2089
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2090
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2091
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2092
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:23 UTC], ["updated_at", 2016-09-27 22:01:23 UTC]]
|
2093
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
2094
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2095
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2096
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2097
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2098
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2099
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
2100
|
+
[1m[36mTimeful::FeedItem Load (1.6ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2101
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
2102
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2103
|
+
[1m[35m (3.1ms)[0m [1m[35mCOMMIT[0m
|
2104
|
+
[1m[35m (76.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2105
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2106
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2107
|
+
[1m[35m (3.2ms)[0m [1m[35mCOMMIT[0m
|
2108
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2109
|
+
[1m[35mSQL (3.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2110
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
2111
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2112
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2113
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2114
|
+
[1m[35mSQL (11.3ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2115
|
+
[1m[35mSQL (6.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2116
|
+
[1m[35m (3.2ms)[0m [1m[35mCOMMIT[0m
|
2117
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2118
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2119
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2120
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2121
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2122
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2123
|
+
[1m[36mTimeful::FeedItem Load (2.1ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2124
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2125
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2126
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2127
|
+
[1m[35m (88.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2128
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
2129
|
+
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2130
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2131
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2132
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2133
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2134
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2135
|
+
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2136
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
2137
|
+
[1m[35m (113.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2138
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2139
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2140
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
2141
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2142
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2143
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2144
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
2145
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2146
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2147
|
+
[1m[35m (6.8ms)[0m [1m[35mCOMMIT[0m
|
2148
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2149
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:01:24 UTC], ["updated_at", 2016-09-27 22:01:24 UTC]]
|
2150
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
2151
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2152
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2153
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2154
|
+
[1m[35m (5.4ms)[0m [1m[35mCOMMIT[0m
|
2155
|
+
[1m[35m (37.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2156
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2157
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2158
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2159
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2160
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2161
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2162
|
+
[1m[35m (43.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2163
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2164
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2165
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2166
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2167
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2168
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2169
|
+
[1m[35m (57.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2170
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2171
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2172
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2173
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2174
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2175
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2176
|
+
[1m[35m (66.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2177
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2178
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2179
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2180
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2181
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2182
|
+
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2183
|
+
[1m[35m (197.0ms)[0m [1m[35mCOMMIT[0m
|
2184
|
+
[1m[35m (4.5ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2185
|
+
FROM pg_tables
|
2186
|
+
WHERE
|
2187
|
+
tablename !~ '_prt_' AND
|
2188
|
+
tablename <> 'schema_migrations' AND
|
2189
|
+
schemaname = ANY (current_schemas(false))
|
2190
|
+
[0m
|
2191
|
+
[1m[35m (3.9ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2192
|
+
[1m[35m (103.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2193
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2194
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2195
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2196
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2197
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2198
|
+
[1m[35m (3.4ms)[0m [1m[35mCOMMIT[0m
|
2199
|
+
[1m[35m (61.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2200
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2201
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2202
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
2203
|
+
[1m[35m (1.9ms)[0m [1m[35mBEGIN[0m
|
2204
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:44 UTC], ["updated_at", 2016-09-27 22:01:44 UTC]]
|
2205
|
+
[1m[35m (5.3ms)[0m [1m[35mCOMMIT[0m
|
2206
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2207
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2208
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:44 UTC], ["updated_at", 2016-09-27 22:01:44 UTC]]
|
2209
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
2210
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2211
|
+
[1m[35mSQL (2.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:44 UTC], ["updated_at", 2016-09-27 22:01:44 UTC]]
|
2212
|
+
[1m[35m (3.2ms)[0m [1m[35mCOMMIT[0m
|
2213
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2214
|
+
[1m[35mSQL (2.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:01:44 UTC], ["updated_at", 2016-09-27 22:01:44 UTC]]
|
2215
|
+
[1m[35m (4.3ms)[0m [1m[35mCOMMIT[0m
|
2216
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2217
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2218
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2219
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2220
|
+
[1m[35m (38.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2221
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2222
|
+
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2223
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2224
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2225
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2226
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:44 UTC], ["updated_at", 2016-09-27 22:01:44 UTC]]
|
2227
|
+
[1m[35m (3.7ms)[0m [1m[35mCOMMIT[0m
|
2228
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2229
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:44 UTC], ["updated_at", 2016-09-27 22:01:44 UTC]]
|
2230
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2231
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2232
|
+
[1m[35mSQL (2.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:01:44 UTC], ["updated_at", 2016-09-27 22:01:44 UTC]]
|
2233
|
+
[1m[35m (3.3ms)[0m [1m[35mCOMMIT[0m
|
2234
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2235
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2236
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2237
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2238
|
+
[1m[35m (49.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2239
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2240
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2241
|
+
[1m[35m (5.7ms)[0m [1m[35mCOMMIT[0m
|
2242
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2243
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2244
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2245
|
+
[1m[35m (34.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2246
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2247
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2248
|
+
[1m[35m (4.3ms)[0m [1m[35mCOMMIT[0m
|
2249
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2250
|
+
[1m[35mSQL (2.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2251
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2252
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2253
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2254
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2255
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2256
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2257
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2258
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2259
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2260
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2261
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2262
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2263
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
2264
|
+
[1m[36mTimeful::FeedItem Load (0.5ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2265
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2266
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2267
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2268
|
+
[1m[35m (21.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2269
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2270
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2271
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2272
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2273
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2274
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2275
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2276
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2277
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2278
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2279
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:01:45 UTC], ["updated_at", 2016-09-27 22:01:45 UTC]]
|
2280
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2281
|
+
[1m[36mTimeful::FeedItem Load (0.6ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2282
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2283
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2284
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2285
|
+
[1m[35m (49.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2286
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2287
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2288
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2289
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2290
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2291
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2292
|
+
[1m[35m (60.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2293
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2294
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2295
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2296
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2297
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2298
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2299
|
+
[1m[35m (9.7ms)[0m [1m[35mCOMMIT[0m
|
2300
|
+
[1m[35m (3.5ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2301
|
+
FROM pg_tables
|
2302
|
+
WHERE
|
2303
|
+
tablename !~ '_prt_' AND
|
2304
|
+
tablename <> 'schema_migrations' AND
|
2305
|
+
schemaname = ANY (current_schemas(false))
|
2306
|
+
[0m
|
2307
|
+
[1m[35m (1.6ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2308
|
+
[1m[35m (26.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2309
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2310
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2311
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2312
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2313
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2314
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:02 UTC], ["updated_at", 2016-09-27 22:02:02 UTC]]
|
2315
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2316
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2317
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:02 UTC], ["updated_at", 2016-09-27 22:02:02 UTC]]
|
2318
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
2319
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2320
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:02:02 UTC], ["updated_at", 2016-09-27 22:02:02 UTC]]
|
2321
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2322
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2323
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2324
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2325
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
2326
|
+
[1m[35m (41.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2327
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2328
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2329
|
+
[1m[35m (3.6ms)[0m [1m[35mCOMMIT[0m
|
2330
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2331
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:02 UTC], ["updated_at", 2016-09-27 22:02:02 UTC]]
|
2332
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2333
|
+
[1m[35m (2.5ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2334
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2335
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:02 UTC], ["updated_at", 2016-09-27 22:02:02 UTC]]
|
2336
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2337
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2338
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:02 UTC], ["updated_at", 2016-09-27 22:02:02 UTC]]
|
2339
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2340
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2341
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:02 UTC], ["updated_at", 2016-09-27 22:02:02 UTC]]
|
2342
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
2343
|
+
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
2344
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2345
|
+
[1m[35m (8.4ms)[0m [1m[35mBEGIN[0m
|
2346
|
+
[1m[35m (2.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2347
|
+
[1m[35m (8.8ms)[0m [1m[35mCOMMIT[0m
|
2348
|
+
[1m[35m (81.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2349
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2350
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2351
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2352
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2353
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2354
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
2355
|
+
[1m[35m (65.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2356
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
2357
|
+
[1m[35m (2.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2358
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2359
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
2360
|
+
[1m[35m (3.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2361
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
2362
|
+
[1m[35m (52.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2363
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2364
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2365
|
+
[1m[35m (5.2ms)[0m [1m[35mCOMMIT[0m
|
2366
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2367
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2368
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
2369
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2370
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2371
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2372
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2373
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2374
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2375
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2376
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2377
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2378
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2379
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2380
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
2381
|
+
[1m[36mTimeful::FeedItem Load (0.6ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2382
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2383
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2384
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
2385
|
+
[1m[35m (45.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2386
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2387
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2388
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2389
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2390
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2391
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
2392
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2393
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2394
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2395
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2396
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:02:09 UTC], ["updated_at", 2016-09-27 22:02:09 UTC]]
|
2397
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2398
|
+
[1m[36mTimeful::FeedItem Load (1.1ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2399
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2400
|
+
[1m[35m (4.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2401
|
+
[1m[35m (6.2ms)[0m [1m[35mCOMMIT[0m
|
2402
|
+
[1m[35m (67.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2403
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2404
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2405
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
2406
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2407
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2408
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2409
|
+
[1m[35m (56.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2410
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2411
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2412
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2413
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2414
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2415
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2416
|
+
[1m[35m (198.5ms)[0m [1m[35mCOMMIT[0m
|
2417
|
+
[1m[35m (4.6ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2418
|
+
FROM pg_tables
|
2419
|
+
WHERE
|
2420
|
+
tablename !~ '_prt_' AND
|
2421
|
+
tablename <> 'schema_migrations' AND
|
2422
|
+
schemaname = ANY (current_schemas(false))
|
2423
|
+
[0m
|
2424
|
+
[1m[35m (4.0ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2425
|
+
[1m[35m (80.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2426
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2427
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2428
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2429
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2430
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2431
|
+
[1m[35m (4.2ms)[0m [1m[35mCOMMIT[0m
|
2432
|
+
[1m[35m (68.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2433
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
2434
|
+
[1m[35m (2.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2435
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
2436
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
2437
|
+
[1m[35mSQL (2.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:19 UTC], ["updated_at", 2016-09-27 22:02:19 UTC]]
|
2438
|
+
[1m[35m (3.1ms)[0m [1m[35mCOMMIT[0m
|
2439
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2440
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2441
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2442
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2443
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2444
|
+
[1m[35m (3.6ms)[0m [1m[35mCOMMIT[0m
|
2445
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2446
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2447
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2448
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2449
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2450
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2451
|
+
[1m[36mTimeful::FeedItem Load (0.5ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2452
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2453
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2454
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2455
|
+
[1m[35m (53.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2456
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2457
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2458
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2459
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2460
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2461
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2462
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2463
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2464
|
+
[1m[35mSQL (3.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2465
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2466
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2467
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2468
|
+
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2469
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2470
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2471
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2472
|
+
[1m[35m (32.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2473
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2474
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2475
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2476
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2477
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2478
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2479
|
+
[1m[35m (50.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2480
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2481
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2482
|
+
[1m[35m (3.4ms)[0m [1m[35mCOMMIT[0m
|
2483
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2484
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2485
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2486
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2487
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2488
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2489
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2490
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2491
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2492
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
2493
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2494
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2495
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2496
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2497
|
+
[1m[35m (35.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2498
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2499
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2500
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2501
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2502
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2503
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2504
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2505
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2506
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2507
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2508
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2509
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2510
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2511
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2512
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:20 UTC], ["updated_at", 2016-09-27 22:02:20 UTC]]
|
2513
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2514
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2515
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2516
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2517
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2518
|
+
[1m[35m (126.1ms)[0m [1m[35mCOMMIT[0m
|
2519
|
+
[1m[35m (68.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2520
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2521
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2522
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
2523
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2524
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2525
|
+
[1m[35m (3.3ms)[0m [1m[35mCOMMIT[0m
|
2526
|
+
[1m[35m (49.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2527
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2528
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2529
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2530
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2531
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2532
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2533
|
+
[1m[35m (5.9ms)[0m [1m[35mCOMMIT[0m
|
2534
|
+
[1m[35m (2.3ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2535
|
+
FROM pg_tables
|
2536
|
+
WHERE
|
2537
|
+
tablename !~ '_prt_' AND
|
2538
|
+
tablename <> 'schema_migrations' AND
|
2539
|
+
schemaname = ANY (current_schemas(false))
|
2540
|
+
[0m
|
2541
|
+
[1m[35m (1.7ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2542
|
+
[1m[35m (32.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2543
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2544
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2545
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2546
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2547
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2548
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2549
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
2550
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2551
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2552
|
+
[1m[35mSQL (2.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2553
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2554
|
+
[1m[35m (4.7ms)[0m [1m[35mCOMMIT[0m
|
2555
|
+
[1m[36mTimeful::FeedItem Load (0.4ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2556
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2557
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2558
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
2559
|
+
[1m[35m (40.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2560
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2561
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2562
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
2563
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2564
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2565
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
2566
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2567
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2568
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2569
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2570
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2571
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2572
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2573
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2574
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2575
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2576
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:02:59 UTC], ["updated_at", 2016-09-27 22:02:59 UTC]]
|
2577
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2578
|
+
[1m[36mTimeful::FeedItem Load (1.3ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2579
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2580
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2581
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2582
|
+
[1m[35m (37.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2583
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2584
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2585
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2586
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2587
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2588
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2589
|
+
[1m[35m (56.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2590
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2591
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2592
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2593
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2594
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2595
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2596
|
+
[1m[35m (61.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2597
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
2598
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2599
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2600
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2601
|
+
[1m[35mSQL (3.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:03:00 UTC], ["updated_at", 2016-09-27 22:03:00 UTC]]
|
2602
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2603
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2604
|
+
[1m[35m (1.8ms)[0m [1m[35mBEGIN[0m
|
2605
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:03:00 UTC], ["updated_at", 2016-09-27 22:03:00 UTC]]
|
2606
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2607
|
+
[1m[35m (7.8ms)[0m [1m[35mBEGIN[0m
|
2608
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:03:00 UTC], ["updated_at", 2016-09-27 22:03:00 UTC]]
|
2609
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2610
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2611
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:03:00 UTC], ["updated_at", 2016-09-27 22:03:00 UTC]]
|
2612
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2613
|
+
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
2614
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2615
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2616
|
+
[1m[35m (5.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2617
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2618
|
+
[1m[35m (53.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2619
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2620
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2621
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2622
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2623
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2624
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:03:24 UTC], ["updated_at", 2016-09-27 22:03:24 UTC]]
|
2625
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
2626
|
+
[1m[35m (6.4ms)[0m [1m[35mBEGIN[0m
|
2627
|
+
[1m[35mSQL (2.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:03:24 UTC], ["updated_at", 2016-09-27 22:03:24 UTC]]
|
2628
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
2629
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2630
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:03:24 UTC], ["updated_at", 2016-09-27 22:03:24 UTC]]
|
2631
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2632
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2633
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2634
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2635
|
+
[1m[35m (6.5ms)[0m [1m[35mCOMMIT[0m
|
2636
|
+
[1m[35m (120.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2637
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2638
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2639
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
2640
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2641
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2642
|
+
[1m[35m (3.1ms)[0m [1m[35mCOMMIT[0m
|
2643
|
+
[1m[35m (84.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2644
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2645
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2646
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2647
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2648
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2649
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2650
|
+
[1m[35m (101.4ms)[0m [1m[35mCOMMIT[0m
|
2651
|
+
[1m[35m (4.8ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2652
|
+
FROM pg_tables
|
2653
|
+
WHERE
|
2654
|
+
tablename !~ '_prt_' AND
|
2655
|
+
tablename <> 'schema_migrations' AND
|
2656
|
+
schemaname = ANY (current_schemas(false))
|
2657
|
+
[0m
|
2658
|
+
[1m[35m (4.0ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2659
|
+
[1m[35m (71.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2660
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2661
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2662
|
+
[1m[35m (6.2ms)[0m [1m[35mCOMMIT[0m
|
2663
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2664
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:10 UTC], ["updated_at", 2016-09-27 22:08:10 UTC]]
|
2665
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
2666
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2667
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:10 UTC], ["updated_at", 2016-09-27 22:08:10 UTC]]
|
2668
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:10 UTC], ["updated_at", 2016-09-27 22:08:10 UTC]]
|
2669
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:08:10 UTC], ["updated_at", 2016-09-27 22:08:10 UTC]]
|
2670
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:10 UTC], ["updated_at", 2016-09-27 22:08:10 UTC]]
|
2671
|
+
[1m[35m (3.6ms)[0m [1m[35mCOMMIT[0m
|
2672
|
+
[1m[36mTimeful::FeedItem Load (1.5ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2673
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
2674
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2675
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2676
|
+
[1m[35m (80.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2677
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2678
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2679
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2680
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2681
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2682
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
2683
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2684
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2685
|
+
[1m[35mSQL (1.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2686
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2687
|
+
[1m[35mSQL (3.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2688
|
+
[1m[35m (3.4ms)[0m [1m[35mCOMMIT[0m
|
2689
|
+
[1m[35m (2.0ms)[0m [1m[35mBEGIN[0m
|
2690
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2691
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2692
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2693
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2694
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2695
|
+
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2696
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2697
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2698
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2699
|
+
[1m[35m (32.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2700
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2701
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2702
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2703
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2704
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2705
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2706
|
+
[1m[35m (60.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2707
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2708
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2709
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2710
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2711
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2712
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2713
|
+
[1m[35m (45.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2714
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2715
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2716
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
2717
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2718
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2719
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2720
|
+
[1m[35m (48.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2721
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
2722
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2723
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2724
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2725
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2726
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2727
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2728
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2729
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2730
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2731
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2732
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2733
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2734
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2735
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2736
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2737
|
+
[1m[36mUser Load (1.5ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1[0m [["LIMIT", 1000]]
|
2738
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2739
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2740
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2741
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2742
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 2], ["activity_id", 1], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2743
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2744
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2745
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2746
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2747
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2748
|
+
[1m[35m (32.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2749
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2750
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2751
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2752
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2753
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2754
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2755
|
+
[1m[35m (3.6ms)[0m [1m[35mCOMMIT[0m
|
2756
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2757
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2758
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
2759
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2760
|
+
[1m[35mSQL (1.5ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2761
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2762
|
+
[1m[36mUser Load (2.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1[0m [["LIMIT", 1000]]
|
2763
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2764
|
+
[1m[35mSQL (4.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:11 UTC], ["updated_at", 2016-09-27 22:08:11 UTC]]
|
2765
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2766
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2767
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2768
|
+
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2769
|
+
[1m[35m (9.1ms)[0m [1m[35mCOMMIT[0m
|
2770
|
+
[1m[35m (50.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2771
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2772
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2773
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2774
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2775
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
2776
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2777
|
+
[1m[35m (4.3ms)[0m [1m[35mCOMMIT[0m
|
2778
|
+
[1m[35m (2.5ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2779
|
+
FROM pg_tables
|
2780
|
+
WHERE
|
2781
|
+
tablename !~ '_prt_' AND
|
2782
|
+
tablename <> 'schema_migrations' AND
|
2783
|
+
schemaname = ANY (current_schemas(false))
|
2784
|
+
[0m
|
2785
|
+
[1m[35m (14.4ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2786
|
+
[1m[35m (31.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2787
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2788
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2789
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2790
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2791
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2792
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2793
|
+
[1m[35m (24.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2794
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2795
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2796
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2797
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2798
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2799
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
2800
|
+
[1m[35m (23.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2801
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2802
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2803
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2804
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2805
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2806
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2807
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2808
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2809
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2810
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2811
|
+
[1m[35m (1.6ms)[0m [1m[35mBEGIN[0m
|
2812
|
+
[1m[35mSQL (4.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2813
|
+
[1m[35m (3.2ms)[0m [1m[35mCOMMIT[0m
|
2814
|
+
[1m[36mUser Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1[0m [["LIMIT", 1000]]
|
2815
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2816
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2817
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2818
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_feed_items"[0m
|
2819
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2820
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2821
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2822
|
+
[1m[35m (21.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2823
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2824
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2825
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2826
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2827
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2828
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2829
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2830
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2831
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2832
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2833
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2834
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2835
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2836
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1[0m [["LIMIT", 1000]]
|
2837
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2838
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:32 UTC], ["updated_at", 2016-09-27 22:08:32 UTC]]
|
2839
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2840
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2841
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2842
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2843
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2844
|
+
[1m[35m (47.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2845
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
2846
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2847
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2848
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2849
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2850
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2851
|
+
[1m[35m (42.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2852
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2853
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2854
|
+
[1m[35m (3.4ms)[0m [1m[35mCOMMIT[0m
|
2855
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2856
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2857
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2858
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2859
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2860
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2861
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2862
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2863
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
2864
|
+
[1m[36mTimeful::FeedItem Load (0.6ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2865
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2866
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2867
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2868
|
+
[1m[35m (40.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2869
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2870
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2871
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2872
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2873
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2874
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2875
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2876
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2877
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2878
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2879
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2880
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2881
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
2882
|
+
[1m[35mSQL (8.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2883
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2884
|
+
[1m[35mSQL (1.7ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2885
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:08:33 UTC], ["updated_at", 2016-09-27 22:08:33 UTC]]
|
2886
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2887
|
+
[1m[36mTimeful::FeedItem Load (1.0ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2888
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2889
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2890
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
2891
|
+
[1m[35m (35.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2892
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2893
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2894
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2895
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2896
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2897
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2898
|
+
[1m[35m (94.4ms)[0m [1m[35mCOMMIT[0m
|
2899
|
+
[1m[35m (1.7ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
2900
|
+
FROM pg_tables
|
2901
|
+
WHERE
|
2902
|
+
tablename !~ '_prt_' AND
|
2903
|
+
tablename <> 'schema_migrations' AND
|
2904
|
+
schemaname = ANY (current_schemas(false))
|
2905
|
+
[0m
|
2906
|
+
[1m[35m (1.2ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
2907
|
+
[1m[35m (38.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2908
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2909
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2910
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2911
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2912
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2913
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2914
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2915
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2916
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2917
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2918
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2919
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2920
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2921
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2922
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2923
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2924
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2925
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
2926
|
+
[1m[36mTimeful::FeedItem Load (0.3ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2927
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2928
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2929
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2930
|
+
[1m[35m (29.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2931
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2932
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2933
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
2934
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2935
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2936
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
2937
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2938
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2939
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2940
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2941
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2942
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
2943
|
+
[1m[36mTimeful::FeedItem Load (0.5ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
2944
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2945
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2946
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
2947
|
+
[1m[35m (32.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2948
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2949
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2950
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2951
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
2952
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2953
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2954
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
2955
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2956
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2957
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2958
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2959
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:14:47 UTC], ["updated_at", 2016-09-27 22:14:47 UTC]]
|
2960
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
2961
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2962
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2963
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2964
|
+
[1m[35m (22.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2965
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2966
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2967
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2968
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2969
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2970
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
2971
|
+
[1m[35m (39.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2972
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2973
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2974
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
2975
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2976
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2977
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2978
|
+
[1m[35m (34.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2979
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2980
|
+
[1m[35m (3.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2981
|
+
[1m[35m (4.0ms)[0m [1m[35mCOMMIT[0m
|
2982
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2983
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2984
|
+
[1m[35m (3.9ms)[0m [1m[35mCOMMIT[0m
|
2985
|
+
[1m[35m (46.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2986
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2987
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2988
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2989
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
2990
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2991
|
+
[1m[35m (4.1ms)[0m [1m[35mCOMMIT[0m
|
2992
|
+
[1m[35m (41.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
2993
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2994
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
2995
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
2996
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2997
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
2998
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
2999
|
+
[1m[35m (4.2ms)[0m [1m[35mCOMMIT[0m
|
3000
|
+
[1m[35m (2.1ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3001
|
+
FROM pg_tables
|
3002
|
+
WHERE
|
3003
|
+
tablename !~ '_prt_' AND
|
3004
|
+
tablename <> 'schema_migrations' AND
|
3005
|
+
schemaname = ANY (current_schemas(false))
|
3006
|
+
[0m
|
3007
|
+
[1m[35m (2.2ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3008
|
+
[1m[35m (28.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3009
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3010
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3011
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3012
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3013
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3014
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3015
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
3016
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3017
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3018
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
3019
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3020
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3021
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
3022
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3023
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3024
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3025
|
+
[1m[35m (32.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3026
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3027
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3028
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3029
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3030
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3031
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3032
|
+
[1m[35m (60.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3033
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3034
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3035
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3036
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
3037
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3038
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
3039
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3040
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3041
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3042
|
+
[1m[35mSQL (4.2ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3043
|
+
[1m[35mSQL (5.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3044
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
3045
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3046
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3047
|
+
[1m[35mSQL (5.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3048
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3049
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3050
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3051
|
+
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
3052
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3053
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3054
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
3055
|
+
[1m[35m (33.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3056
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3057
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3058
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3059
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3060
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3061
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
3062
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3063
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3064
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3065
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3066
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:15:15 UTC], ["updated_at", 2016-09-27 22:15:15 UTC]]
|
3067
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
3068
|
+
[1m[36mTimeful::FeedItem Load (1.2ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
3069
|
+
[1m[35m (2.5ms)[0m [1m[35mBEGIN[0m
|
3070
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3071
|
+
[1m[35m (9.0ms)[0m [1m[35mCOMMIT[0m
|
3072
|
+
[1m[35m (39.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3073
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3074
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3075
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3076
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3077
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3078
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3079
|
+
[1m[35m (48.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3080
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3081
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3082
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3083
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3084
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3085
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3086
|
+
[1m[35m (36.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3087
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3088
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3089
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3090
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3091
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3092
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3093
|
+
[1m[35m (57.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3094
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3095
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3096
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3097
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3098
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3099
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3100
|
+
[1m[35m (193.0ms)[0m [1m[35mCOMMIT[0m
|
3101
|
+
[1m[35m (4.6ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3102
|
+
FROM pg_tables
|
3103
|
+
WHERE
|
3104
|
+
tablename !~ '_prt_' AND
|
3105
|
+
tablename <> 'schema_migrations' AND
|
3106
|
+
schemaname = ANY (current_schemas(false))
|
3107
|
+
[0m
|
3108
|
+
[1m[35m (3.9ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3109
|
+
[1m[35m (78.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3110
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3111
|
+
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3112
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
3113
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
3114
|
+
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3115
|
+
[1m[35m (3.3ms)[0m [1m[35mCOMMIT[0m
|
3116
|
+
[1m[35m (40.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3117
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3118
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3119
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
3120
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3121
|
+
[1m[35mSQL (3.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3122
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
3123
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
3124
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3125
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3126
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3127
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3128
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
3129
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3130
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3131
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3132
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3133
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3134
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
3135
|
+
[1m[36mTimeful::FeedItem Load (0.6ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
3136
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3137
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3138
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3139
|
+
[1m[35m (46.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3140
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3141
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3142
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3143
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3144
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3145
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
3146
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3147
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3148
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3149
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3150
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:15:58 UTC], ["updated_at", 2016-09-27 22:15:58 UTC]]
|
3151
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3152
|
+
[1m[36mTimeful::FeedItem Load (4.8ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
3153
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3154
|
+
[1m[35m (3.3ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3155
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3156
|
+
[1m[35m (31.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3157
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3158
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3159
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3160
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3161
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3162
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3163
|
+
[1m[35m (37.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3164
|
+
[1m[35m (3.0ms)[0m [1m[35mBEGIN[0m
|
3165
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3166
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
3167
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3168
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3169
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
3170
|
+
[1m[35m (45.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3171
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3172
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3173
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3174
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3175
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3176
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:59 UTC], ["updated_at", 2016-09-27 22:15:59 UTC]]
|
3177
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3178
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3179
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:59 UTC], ["updated_at", 2016-09-27 22:15:59 UTC]]
|
3180
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3181
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3182
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:15:59 UTC], ["updated_at", 2016-09-27 22:15:59 UTC]]
|
3183
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3184
|
+
[ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 8764e6c7-8ce9-48d4-b219-62a1c90b3873) to Test(timeful) with arguments: #<GlobalID:0x000000051eca08 @uri=#<URI::GID gid://dummy/PostActivity/1>>
|
3185
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3186
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3187
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3188
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3189
|
+
[1m[35m (21.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3190
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3191
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3192
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3193
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3194
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:59 UTC], ["updated_at", 2016-09-27 22:15:59 UTC]]
|
3195
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3196
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3197
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:15:59 UTC], ["updated_at", 2016-09-27 22:15:59 UTC]]
|
3198
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3199
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3200
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:15:59 UTC], ["updated_at", 2016-09-27 22:15:59 UTC]]
|
3201
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3202
|
+
[ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: f2d24825-0312-4135-ad5a-8ab68ed2bcd0) to Test(timeful) with arguments: #<GlobalID:0x00000005166430 @uri=#<URI::GID gid://dummy/PostActivity/1>>
|
3203
|
+
[1m[36mPostActivity Load (0.6ms)[0m [1m[34mSELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
|
3204
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3205
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3206
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
3207
|
+
[1m[35m (42.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3208
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3209
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3210
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3211
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3212
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3213
|
+
[1m[35m (3.0ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3214
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
3215
|
+
[1m[35m (2.8ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3216
|
+
FROM pg_tables
|
3217
|
+
WHERE
|
3218
|
+
tablename !~ '_prt_' AND
|
3219
|
+
tablename <> 'schema_migrations' AND
|
3220
|
+
schemaname = ANY (current_schemas(false))
|
3221
|
+
[0m
|
3222
|
+
[1m[35m (1.9ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3223
|
+
[1m[35m (31.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3224
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3225
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3226
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3227
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3228
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3229
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3230
|
+
[1m[35m (22.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3231
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3232
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3233
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3234
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3235
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3236
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3237
|
+
[1m[35m (5.1ms)[0m [1m[35mCOMMIT[0m
|
3238
|
+
[1m[35m (1.4ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3239
|
+
FROM pg_tables
|
3240
|
+
WHERE
|
3241
|
+
tablename !~ '_prt_' AND
|
3242
|
+
tablename <> 'schema_migrations' AND
|
3243
|
+
schemaname = ANY (current_schemas(false))
|
3244
|
+
[0m
|
3245
|
+
[1m[35m (1.2ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3246
|
+
[1m[35m (33.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3247
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3248
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3249
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3250
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3251
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3252
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3253
|
+
[1m[35m (66.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3254
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3255
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3256
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
3257
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3258
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
3259
|
+
[1m[35m (1.1ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3260
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
3261
|
+
[1m[35m (2.3ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3262
|
+
FROM pg_tables
|
3263
|
+
WHERE
|
3264
|
+
tablename !~ '_prt_' AND
|
3265
|
+
tablename <> 'schema_migrations' AND
|
3266
|
+
schemaname = ANY (current_schemas(false))
|
3267
|
+
[0m
|
3268
|
+
[1m[35m (7.3ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3269
|
+
[1m[35m (33.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3270
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3271
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3272
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3273
|
+
[ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [ab085463-d61b-497e-b283-ffb1d8e833c1] Performing Timeful::DeliverActivityToSubscribersJob from Test(default) with arguments: #<GlobalID:0x00000004787e28 @uri=#<URI::GID gid://dummy/Timeful::Activity/1003>>
|
3274
|
+
[ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [ab085463-d61b-497e-b283-ffb1d8e833c1] Performed Timeful::DeliverActivityToSubscribersJob from Test(default) in 0.21ms
|
3275
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3276
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3277
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3278
|
+
[1m[35m (32.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3279
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3280
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3281
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
3282
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3283
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
3284
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3285
|
+
[1m[35m (23.8ms)[0m [1m[35mCOMMIT[0m
|
3286
|
+
[1m[35m (1.7ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3287
|
+
FROM pg_tables
|
3288
|
+
WHERE
|
3289
|
+
tablename !~ '_prt_' AND
|
3290
|
+
tablename <> 'schema_migrations' AND
|
3291
|
+
schemaname = ANY (current_schemas(false))
|
3292
|
+
[0m
|
3293
|
+
[1m[35m (1.0ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3294
|
+
[1m[35m (53.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3295
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
3296
|
+
[1m[35m (4.4ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3297
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
3298
|
+
[ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [b762197d-3f84-4179-a739-eb81f992d413] Performing Timeful::DeliverActivityToSubscribersJob from Test(default) with arguments: #<GlobalID:0x00000004106838 @uri=#<URI::GID gid://dummy/Timeful::Activity/1003>>
|
3299
|
+
[ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [b762197d-3f84-4179-a739-eb81f992d413] Performed Timeful::DeliverActivityToSubscribersJob from Test(default) in 0.34ms
|
3300
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3301
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3302
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
3303
|
+
[1m[35m (24.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3304
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3305
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3306
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3307
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3308
|
+
[1m[35mSQL (3.1ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3309
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
3310
|
+
[1m[35m (0.8ms)[0m [1m[35mBEGIN[0m
|
3311
|
+
[1m[35mSQL (2.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3312
|
+
[1m[35m (4.7ms)[0m [1m[35mCOMMIT[0m
|
3313
|
+
[1m[35m (3.7ms)[0m [1m[35mBEGIN[0m
|
3314
|
+
[1m[35mSQL (2.8ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3315
|
+
[1m[35m (4.4ms)[0m [1m[35mCOMMIT[0m
|
3316
|
+
[ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 610cf940-80d4-4873-9869-6980400eda49) to Test(default) with arguments: #<GlobalID:0x00000004408590 @uri=#<URI::GID gid://dummy/PostActivity/1>>
|
3317
|
+
[1m[36mPostActivity Load (1.9ms)[0m [1m[34mSELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
|
3318
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3319
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3320
|
+
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
3321
|
+
[1m[35m (58.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3322
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
3323
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3324
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3325
|
+
[1m[35m (2.6ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3326
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3327
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3328
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3329
|
+
[1m[35m (2.2ms)[0m [1m[35mBEGIN[0m
|
3330
|
+
[1m[35mSQL (16.2ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3331
|
+
[1m[35m (3.3ms)[0m [1m[35mCOMMIT[0m
|
3332
|
+
[1m[35m (4.6ms)[0m [1m[35mBEGIN[0m
|
3333
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3334
|
+
[1m[35m (5.1ms)[0m [1m[35mCOMMIT[0m
|
3335
|
+
[ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 00b52989-4721-4809-a23c-0bef841a3c1a) to Test(default) with arguments: #<GlobalID:0x00000004608a98 @uri=#<URI::GID gid://dummy/PostActivity/1>>
|
3336
|
+
[1m[35m (2.5ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3337
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3338
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3339
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3340
|
+
[1m[35m (58.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3341
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3342
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3343
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3344
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3345
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3346
|
+
[1m[35m (3.8ms)[0m [1m[35mCOMMIT[0m
|
3347
|
+
[1m[35m (135.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3348
|
+
[1m[35m (1.7ms)[0m [1m[35mBEGIN[0m
|
3349
|
+
[1m[35m (3.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3350
|
+
[1m[35m (4.1ms)[0m [1m[35mCOMMIT[0m
|
3351
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3352
|
+
[1m[35mSQL (2.0ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3353
|
+
[1m[35m (3.3ms)[0m [1m[35mCOMMIT[0m
|
3354
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3355
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3356
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3357
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3358
|
+
[1m[35mSQL (1.4ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3359
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3360
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3361
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3362
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3363
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3364
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 2], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3365
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3366
|
+
[1m[36mTimeful::FeedItem Load (0.7ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
3367
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3368
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3369
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3370
|
+
[1m[35m (27.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3371
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3372
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3373
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3374
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3375
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3376
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3377
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
3378
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3379
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3380
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3381
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("feedable_type", "feedable_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["feedable_type", "User"], ["feedable_id", 1], ["activity_id", 1], ["created_at", 2016-09-27 22:27:09 UTC], ["updated_at", 2016-09-27 22:27:09 UTC]]
|
3382
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3383
|
+
[1m[36mTimeful::FeedItem Load (1.4ms)[0m [1m[34mSELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
3384
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
3385
|
+
[1m[35m (5.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3386
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
3387
|
+
[1m[35m (33.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3388
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3389
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3390
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3391
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3392
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3393
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3394
|
+
[1m[35m (37.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3395
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3396
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3397
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3398
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3399
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3400
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
3401
|
+
[1m[35m (32.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3402
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3403
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3404
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3405
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3406
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3407
|
+
[1m[35m (6.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3408
|
+
[1m[35m (4.1ms)[0m [1m[35mCOMMIT[0m
|
3409
|
+
[1m[35m (2.7ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3410
|
+
FROM pg_tables
|
3411
|
+
WHERE
|
3412
|
+
tablename !~ '_prt_' AND
|
3413
|
+
tablename <> 'schema_migrations' AND
|
3414
|
+
schemaname = ANY (current_schemas(false))
|
3415
|
+
[0m
|
3416
|
+
[1m[35m (3.5ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3417
|
+
[1m[35m (27.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3418
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3419
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3420
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3421
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3422
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3423
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3424
|
+
[1m[35m (23.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3425
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3426
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3427
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3428
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3429
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3430
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
3431
|
+
[1m[35m (31.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3432
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3433
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3434
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3435
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3436
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3437
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3438
|
+
[1m[35m (196.7ms)[0m [1m[35mCOMMIT[0m
|
3439
|
+
[1m[35m (14.7ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3440
|
+
FROM pg_tables
|
3441
|
+
WHERE
|
3442
|
+
tablename !~ '_prt_' AND
|
3443
|
+
tablename <> 'schema_migrations' AND
|
3444
|
+
schemaname = ANY (current_schemas(false))
|
3445
|
+
[0m
|
3446
|
+
[1m[35m (8.8ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3447
|
+
[1m[35m (75.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3448
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3449
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3450
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3451
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3452
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3453
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
3454
|
+
[1m[35m (71.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3455
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3456
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3457
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
3458
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
3459
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3460
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
3461
|
+
[1m[35m (68.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3462
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3463
|
+
[1m[35m (1.2ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3464
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
3465
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3466
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3467
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3468
|
+
[1m[35m (189.6ms)[0m [1m[35mCOMMIT[0m
|
3469
|
+
[1m[35m (6.0ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3470
|
+
FROM pg_tables
|
3471
|
+
WHERE
|
3472
|
+
tablename !~ '_prt_' AND
|
3473
|
+
tablename <> 'schema_migrations' AND
|
3474
|
+
schemaname = ANY (current_schemas(false))
|
3475
|
+
[0m
|
3476
|
+
[1m[35m (4.9ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3477
|
+
[1m[35m (66.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3478
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3479
|
+
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3480
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3481
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3482
|
+
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3483
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
3484
|
+
[1m[35m (114.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3485
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
3486
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3487
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
3488
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3489
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3490
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
3491
|
+
[1m[35m (54.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3492
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3493
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3494
|
+
[1m[35m (5.9ms)[0m [1m[35mCOMMIT[0m
|
3495
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3496
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3497
|
+
[1m[35m (3.2ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3498
|
+
[1m[35m (3.9ms)[0m [1m[35mCOMMIT[0m
|
3499
|
+
[1m[35m (2.8ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3500
|
+
FROM pg_tables
|
3501
|
+
WHERE
|
3502
|
+
tablename !~ '_prt_' AND
|
3503
|
+
tablename <> 'schema_migrations' AND
|
3504
|
+
schemaname = ANY (current_schemas(false))
|
3505
|
+
[0m
|
3506
|
+
[1m[35m (2.0ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3507
|
+
[1m[35m (29.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3508
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3509
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3510
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3511
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3512
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3513
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3514
|
+
[1m[35m (21.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3515
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3516
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3517
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3518
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3519
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3520
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3521
|
+
[1m[35m (24.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3522
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3523
|
+
[1m[35m (4.9ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3524
|
+
[1m[35m (3.9ms)[0m [1m[35mCOMMIT[0m
|
3525
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3526
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3527
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3528
|
+
[1m[35m (7.8ms)[0m [1m[35mCOMMIT[0m
|
3529
|
+
[1m[35m (1.6ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
3530
|
+
FROM pg_tables
|
3531
|
+
WHERE
|
3532
|
+
tablename !~ '_prt_' AND
|
3533
|
+
tablename <> 'schema_migrations' AND
|
3534
|
+
schemaname = ANY (current_schemas(false))
|
3535
|
+
[0m
|
3536
|
+
[1m[35m (1.6ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3537
|
+
[1m[35m (34.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3538
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3539
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3540
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3541
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3542
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3543
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3544
|
+
[1m[35m (27.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3545
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3546
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3547
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3548
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3549
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL[0m
|
3550
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3551
|
+
[1m[35m (40.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."timeful_activities", "public"."timeful_feed_items", "public"."users", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3552
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3553
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL[0m
|
3554
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|