localtower 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -3
- data/app/controllers/localtower/pages_controller.rb +4 -0
- data/app/views/layouts/localtower/application.html.erb +8 -0
- data/app/views/localtower/pages/logs.html.erb +57 -0
- data/config/routes.rb +1 -0
- data/lib/localtower/plugins/capture.rb +113 -0
- data/lib/localtower/version.rb +1 -1
- data/lib/localtower.rb +1 -1
- metadata +4 -8
- data/spec/dummy/log/development.log +0 -218
- data/spec/dummy/log/localtower.log +0 -520
- data/spec/dummy/log/test.log +0 -508
data/spec/dummy/log/test.log
DELETED
@@ -1,508 +0,0 @@
|
|
1
|
-
[1m[35m (42.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
2
|
-
[1m[35m (21.1ms)[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
|
3
|
-
[1m[35m (1.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
4
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5
|
-
Migrating to ChangeTheModelPostAtTime1490266708 (20170323105831)
|
6
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
7
|
-
[1m[35m (36.8ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
8
|
-
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105831"]]
|
9
|
-
[1m[35m (6.7ms)[0m [1m[35mCOMMIT[0m
|
10
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
11
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
12
|
-
[1m[35mSQL (1.0ms)[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", 2017-03-23 10:58:33 UTC], ["updated_at", 2017-03-23 10:58:33 UTC]]
|
13
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
14
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
15
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
17
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18
|
-
Migrating to ChangeTheModelUserAtTime1490266714 (20170323105836)
|
19
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
20
|
-
[1m[35m (10.2ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key)[0m
|
21
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105836"]]
|
22
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
23
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
24
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
25
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
26
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
27
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
29
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30
|
-
Migrating to ChangeTheModelPostAtTime1490266718 (20170323105841)
|
31
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
32
|
-
[1m[35m (39.7ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
33
|
-
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
34
|
-
[1m[35m (3.6ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
35
|
-
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
36
|
-
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
37
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105841"]]
|
38
|
-
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
39
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
40
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
41
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
42
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
43
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
45
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
46
|
-
Migrating to ChangeTheModelPostAtTime1490266723 (20170323105846)
|
47
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
48
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105846"]]
|
49
|
-
[1m[35m (8.7ms)[0m [1m[35mCOMMIT[0m
|
50
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
51
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
52
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
53
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
54
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
55
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
56
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
57
|
-
Migrating to ChangeTheModelPostAtTime1490266728 (20170323105851)
|
58
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
59
|
-
[1m[35m (9.0ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
60
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105851"]]
|
61
|
-
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
62
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
63
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
64
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
65
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
66
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
67
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
68
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
69
|
-
Migrating to ChangeTheModelPostAtTime1490266733 (20170323105855)
|
70
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
71
|
-
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
72
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
73
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105855"]]
|
74
|
-
[1m[35m (8.5ms)[0m [1m[35mCOMMIT[0m
|
75
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
76
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
77
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
78
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
79
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
80
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
81
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
82
|
-
Migrating to ChangeTheModelPostAtTime1490266738 (20170323105900)
|
83
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
84
|
-
[1m[35m (9.6ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
85
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
86
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105900"]]
|
87
|
-
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
88
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
89
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
90
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
91
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
92
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
93
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
94
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
95
|
-
Migrating to ChangeTheModelPostAtTime1490266743 (20170323105905)
|
96
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97
|
-
[1m[35m (9.6ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
98
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105905"]]
|
99
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
100
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
101
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
102
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
103
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
104
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
105
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
106
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107
|
-
Migrating to ChangeTheModelPostAtTime1490266747 (20170323105910)
|
108
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
109
|
-
[1m[35m (0.7ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
110
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105910"]]
|
111
|
-
[1m[35m (9.4ms)[0m [1m[35mCOMMIT[0m
|
112
|
-
[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]]
|
113
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
114
|
-
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
115
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
116
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
117
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
118
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
119
|
-
Migrating to ChangeTheModelPostAtTime1490266752 (20170323105915)
|
120
|
-
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
121
|
-
[1m[35m (10.3ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
122
|
-
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105915"]]
|
123
|
-
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
124
|
-
[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]]
|
125
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
126
|
-
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
127
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
128
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
129
|
-
[1m[35m (15.0ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
130
|
-
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
131
|
-
[1m[35m (2.1ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
132
|
-
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
133
|
-
[1m[35m (3.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
|
134
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
135
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
136
|
-
Migrating to CreatePosts (20170323105920)
|
137
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
138
|
-
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
139
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
140
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105920"]]
|
141
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
142
|
-
[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]]
|
143
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
144
|
-
[1m[35mSQL (0.5ms)[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", 2017-03-23 10:59:22 UTC], ["updated_at", 2017-03-23 10:59:22 UTC]]
|
145
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
146
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
147
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
148
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
149
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
150
|
-
Migrating to CreateUsers (20170323105925)
|
151
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
152
|
-
[1m[35m (12.4ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
153
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
154
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105925"]]
|
155
|
-
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
156
|
-
[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]]
|
157
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
158
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
159
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
160
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
161
|
-
[1m[35m (8.0ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
162
|
-
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
163
|
-
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
164
|
-
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
165
|
-
[1m[35m (12.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
166
|
-
[1m[35m (4.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
|
167
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
168
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
169
|
-
Migrating to CreatePosts (20170323105930)
|
170
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
171
|
-
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
172
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
173
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105930"]]
|
174
|
-
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
175
|
-
[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]]
|
176
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
177
|
-
[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", 2017-03-23 10:59:32 UTC], ["updated_at", 2017-03-23 10:59:32 UTC]]
|
178
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
179
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
180
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
181
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
182
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
183
|
-
Migrating to CreateUsers (20170323105935)
|
184
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
185
|
-
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
186
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
187
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105935"]]
|
188
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
189
|
-
[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]]
|
190
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
191
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
192
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
193
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
194
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
195
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
196
|
-
Migrating to ChangeTheModelPostAtTime1490266777 (20170323105939)
|
197
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
198
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" ADD "user_id" integer[0m
|
199
|
-
[1m[35m (9.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
200
|
-
[1m[35m (15.4ms)[0m [1m[35mALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
|
201
|
-
FOREIGN KEY ("user_id")
|
202
|
-
REFERENCES "users" ("id")
|
203
|
-
[0m
|
204
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105939"]]
|
205
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
206
|
-
[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]]
|
207
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
208
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
209
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
210
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
211
|
-
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
212
|
-
[1m[35m (6.7ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
213
|
-
[1m[35m (3.4ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
214
|
-
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
215
|
-
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
216
|
-
[1m[35m (3.2ms)[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
|
217
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
218
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
219
|
-
Migrating to CreatePosts (20170323105944)
|
220
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
221
|
-
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
222
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
223
|
-
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105944"]]
|
224
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
225
|
-
Migrating to CreateUsers (20170323105947)
|
226
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
227
|
-
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
228
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
229
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105947"]]
|
230
|
-
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
231
|
-
Migrating to CreateUserPosts (20170323105949)
|
232
|
-
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
233
|
-
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "user_posts" ("id" serial primary key, "user_id" integer, "post_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "fk_rails_6c6a346128"
|
234
|
-
FOREIGN KEY ("user_id")
|
235
|
-
REFERENCES "users" ("id")
|
236
|
-
, CONSTRAINT "fk_rails_38a7c4b06f"
|
237
|
-
FOREIGN KEY ("post_id")
|
238
|
-
REFERENCES "posts" ("id")
|
239
|
-
)[0m
|
240
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
241
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
242
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170323105949"]]
|
243
|
-
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
244
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
245
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
246
|
-
[1m[35mSQL (3.5ms)[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", 2017-03-23 10:59:52 UTC], ["updated_at", 2017-03-23 10:59:52 UTC]]
|
247
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
248
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
249
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
250
|
-
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
251
|
-
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
252
|
-
[1m[35m (13.4ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
253
|
-
[1m[35m (2.4ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
254
|
-
[1m[35m (1.9ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
255
|
-
[1m[35m (38.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
256
|
-
[1m[35m (19.8ms)[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
|
257
|
-
[1m[35m (1.6ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
258
|
-
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
259
|
-
Migrating to ChangeTheModelPostAtTime1490601437 (20170327075720)
|
260
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
261
|
-
[1m[35m (30.7ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
262
|
-
[1m[35mSQL (25.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075720"]]
|
263
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
264
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
265
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
266
|
-
[1m[35mSQL (1.2ms)[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", 2017-03-27 07:57:22 UTC], ["updated_at", 2017-03-27 07:57:22 UTC]]
|
267
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
268
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
269
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
270
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
271
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
272
|
-
Migrating to ChangeTheModelUserAtTime1490601442 (20170327075725)
|
273
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
274
|
-
[1m[35m (11.0ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key)[0m
|
275
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075725"]]
|
276
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
277
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
278
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
279
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
280
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
281
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
282
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
283
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
284
|
-
Migrating to ChangeTheModelPostAtTime1490601448 (20170327075730)
|
285
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
286
|
-
[1m[35m (23.8ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
287
|
-
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
288
|
-
[1m[35m (2.9ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
289
|
-
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
290
|
-
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
291
|
-
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075730"]]
|
292
|
-
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
293
|
-
[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]]
|
294
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
295
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
296
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
297
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
298
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
299
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
300
|
-
Migrating to ChangeTheModelPostAtTime1490601453 (20170327075735)
|
301
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
302
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075735"]]
|
303
|
-
[1m[35m (8.7ms)[0m [1m[35mCOMMIT[0m
|
304
|
-
[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]]
|
305
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
306
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
307
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
308
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
309
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
310
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
311
|
-
Migrating to ChangeTheModelPostAtTime1490601458 (20170327075740)
|
312
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
313
|
-
[1m[35m (8.6ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
314
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075740"]]
|
315
|
-
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
316
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
317
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
318
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
319
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
320
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
321
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
322
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
323
|
-
Migrating to ChangeTheModelPostAtTime1490601463 (20170327075745)
|
324
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
325
|
-
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
326
|
-
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
327
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075745"]]
|
328
|
-
[1m[35m (7.7ms)[0m [1m[35mCOMMIT[0m
|
329
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
330
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
331
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
332
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
333
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
334
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
335
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
336
|
-
Migrating to ChangeTheModelPostAtTime1490601468 (20170327075751)
|
337
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
338
|
-
[1m[35m (9.7ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
339
|
-
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
340
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075751"]]
|
341
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
342
|
-
[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]]
|
343
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
344
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
345
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
346
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
347
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
348
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
349
|
-
Migrating to ChangeTheModelPostAtTime1490601474 (20170327075757)
|
350
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
351
|
-
[1m[35m (8.8ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
352
|
-
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075757"]]
|
353
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
354
|
-
[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]]
|
355
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
356
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
357
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
358
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
359
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
360
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
361
|
-
Migrating to ChangeTheModelPostAtTime1490601480 (20170327075803)
|
362
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
363
|
-
[1m[35m (0.5ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
364
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075803"]]
|
365
|
-
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
366
|
-
[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]]
|
367
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
368
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
369
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
370
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
371
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
372
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
373
|
-
Migrating to ChangeTheModelPostAtTime1490601486 (20170327075810)
|
374
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
375
|
-
[1m[35m (2.3ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
376
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075810"]]
|
377
|
-
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
378
|
-
[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]]
|
379
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
380
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
381
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
382
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
383
|
-
[1m[35m (9.2ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
384
|
-
[1m[35m (8.0ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
385
|
-
[1m[35m (6.1ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
386
|
-
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
387
|
-
[1m[35m (2.9ms)[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
|
388
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
389
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
390
|
-
Migrating to CreatePosts (20170327075817)
|
391
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
392
|
-
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
393
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
394
|
-
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075817"]]
|
395
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
396
|
-
[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]]
|
397
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
398
|
-
[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", 2017-03-27 07:58:19 UTC], ["updated_at", 2017-03-27 07:58:19 UTC]]
|
399
|
-
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
400
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
401
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
402
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
403
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
404
|
-
Migrating to CreateUsers (20170327075822)
|
405
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
406
|
-
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
407
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
408
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075822"]]
|
409
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
410
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
411
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
412
|
-
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
413
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
414
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
415
|
-
[1m[35m (7.6ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
416
|
-
[1m[35m (8.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
417
|
-
[1m[35m (7.9ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
418
|
-
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
419
|
-
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
420
|
-
[1m[35m (4.3ms)[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
|
421
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
422
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
423
|
-
Migrating to CreatePosts (20170327075828)
|
424
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
425
|
-
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
426
|
-
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
427
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075828"]]
|
428
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
429
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
430
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
431
|
-
[1m[35mSQL (0.7ms)[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", 2017-03-27 07:58:30 UTC], ["updated_at", 2017-03-27 07:58:30 UTC]]
|
432
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
433
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
434
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
435
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
436
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
437
|
-
Migrating to CreateUsers (20170327075833)
|
438
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
439
|
-
[1m[35m (13.8ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
440
|
-
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
441
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075833"]]
|
442
|
-
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
443
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
444
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
445
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
446
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
447
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
448
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
449
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
450
|
-
Migrating to ChangeTheModelPostAtTime1490601515 (20170327075838)
|
451
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
452
|
-
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" ADD "user_id" integer[0m
|
453
|
-
[1m[35m (9.5ms)[0m [1m[35mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
454
|
-
[1m[35m (11.3ms)[0m [1m[35mALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
|
455
|
-
FOREIGN KEY ("user_id")
|
456
|
-
REFERENCES "users" ("id")
|
457
|
-
[0m
|
458
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075838"]]
|
459
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
460
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
461
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
462
|
-
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
463
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
464
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
465
|
-
[1m[35m (7.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
466
|
-
[1m[35m (7.3ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
467
|
-
[1m[35m (4.0ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
468
|
-
[1m[35m (2.1ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
469
|
-
[1m[35m (12.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
470
|
-
[1m[35m (4.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
|
471
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
472
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
473
|
-
Migrating to CreatePosts (20170327075844)
|
474
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
475
|
-
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
476
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
477
|
-
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075844"]]
|
478
|
-
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
479
|
-
Migrating to CreateUsers (20170327075847)
|
480
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
481
|
-
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
482
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
483
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075847"]]
|
484
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
485
|
-
Migrating to CreateUserPosts (20170327075849)
|
486
|
-
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
487
|
-
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "user_posts" ("id" serial primary key, "user_id" integer, "post_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "fk_rails_6c6a346128"
|
488
|
-
FOREIGN KEY ("user_id")
|
489
|
-
REFERENCES "users" ("id")
|
490
|
-
, CONSTRAINT "fk_rails_38a7c4b06f"
|
491
|
-
FOREIGN KEY ("post_id")
|
492
|
-
REFERENCES "posts" ("id")
|
493
|
-
)[0m
|
494
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
495
|
-
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
496
|
-
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170327075849"]]
|
497
|
-
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
498
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
499
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
500
|
-
[1m[35mSQL (0.5ms)[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", 2017-03-27 07:58:52 UTC], ["updated_at", 2017-03-27 07:58:52 UTC]]
|
501
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
502
|
-
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
503
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
504
|
-
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
505
|
-
[1m[35m (7.4ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
506
|
-
[1m[35m (13.5ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
507
|
-
[1m[35m (2.6ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
508
|
-
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|