localtower 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/localtower/pages_controller.rb +4 -0
- data/app/views/layouts/localtower/application.html.erb +11 -1
- data/app/views/localtower/pages/dashboard.html.erb +23 -11
- data/app/views/localtower/pages/migrations.html.erb +16 -16
- data/app/views/localtower/pages/status.html.erb +29 -0
- data/config/routes.rb +1 -0
- data/lib/localtower/status.rb +30 -0
- data/lib/localtower/tools.rb +8 -0
- data/lib/localtower/version.rb +1 -1
- data/public/css/app.css +14 -0
- data/public/js/app.js +83 -18
- data/public/js/masonry.pkgd.min.js +9 -0
- data/spec/dummy/Gemfile.lock +1 -1
- data/spec/dummy/log/development.log +2533 -0
- data/spec/dummy/log/localtower.log +1185 -0
- data/spec/dummy/log/test.log +1029 -0
- metadata +5 -4
- data/spec/dummy/tmp/pids/server.pid +0 -1
data/spec/dummy/log/test.log
CHANGED
@@ -13148,3 +13148,1032 @@ FOREIGN KEY ("post_id")
|
|
13148
13148
|
[1m[35m (7.0ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13149
13149
|
[1m[35m (2.1ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13150
13150
|
[1m[35m (1.3ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
13151
|
+
[1m[35m (12.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13152
|
+
[1m[35m (8.4ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13153
|
+
[1m[35m (14.1ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13154
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13155
|
+
[1m[35m (20.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
|
13156
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13157
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13158
|
+
Migrating to ChangeTheModelPostAtTime1489186883 (20170310230126)
|
13159
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13160
|
+
[1m[35m (14.3ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
13161
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230126"]]
|
13162
|
+
[1m[35m (6.5ms)[0m [1m[35mCOMMIT[0m
|
13163
|
+
[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]]
|
13164
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13165
|
+
[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-10 23:01:29 UTC], ["updated_at", 2017-03-10 23:01:29 UTC]]
|
13166
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13167
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13168
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13169
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13170
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13171
|
+
Migrating to ChangeTheModelUserAtTime1489186889 (20170310230132)
|
13172
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13173
|
+
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key)[0m
|
13174
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230132"]]
|
13175
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13176
|
+
[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]]
|
13177
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13178
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13179
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13180
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13181
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13182
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13183
|
+
Migrating to ChangeTheModelPostAtTime1489186894 (20170310230137)
|
13184
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13185
|
+
[1m[35m (20.2ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
13186
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
13187
|
+
[1m[35m (5.1ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
13188
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
13189
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
13190
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230137"]]
|
13191
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
13192
|
+
[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]]
|
13193
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13194
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13195
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13196
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13197
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13198
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13199
|
+
Migrating to ChangeTheModelPostAtTime1489186901 (20170310230144)
|
13200
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13201
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230144"]]
|
13202
|
+
[1m[35m (7.6ms)[0m [1m[35mCOMMIT[0m
|
13203
|
+
[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]]
|
13204
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13205
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
13206
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13207
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13208
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13209
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13210
|
+
Migrating to ChangeTheModelPostAtTime1489186907 (20170310230150)
|
13211
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13212
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
13213
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230150"]]
|
13214
|
+
[1m[35m (5.2ms)[0m [1m[35mCOMMIT[0m
|
13215
|
+
[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]]
|
13216
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13217
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
13218
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13219
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13220
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13221
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13222
|
+
Migrating to ChangeTheModelPostAtTime1489186913 (20170310230156)
|
13223
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13224
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
13225
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
13226
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230156"]]
|
13227
|
+
[1m[35m (8.6ms)[0m [1m[35mCOMMIT[0m
|
13228
|
+
[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]]
|
13229
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13230
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13231
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13232
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13233
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13234
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13235
|
+
Migrating to ChangeTheModelPostAtTime1489186919 (20170310230202)
|
13236
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13237
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
13238
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
13239
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230202"]]
|
13240
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
13241
|
+
[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]]
|
13242
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13243
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13244
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13245
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13246
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13247
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13248
|
+
Migrating to ChangeTheModelPostAtTime1489186925 (20170310230208)
|
13249
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13250
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
13251
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230208"]]
|
13252
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13253
|
+
[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]]
|
13254
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13255
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13256
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13257
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13258
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13259
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13260
|
+
Migrating to ChangeTheModelPostAtTime1489186931 (20170310230214)
|
13261
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13262
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
13263
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230214"]]
|
13264
|
+
[1m[35m (9.3ms)[0m [1m[35mCOMMIT[0m
|
13265
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
13266
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13267
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13268
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13269
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13270
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13271
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13272
|
+
Migrating to ChangeTheModelPostAtTime1489186936 (20170310230219)
|
13273
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13274
|
+
[1m[35m (1.3ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
13275
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230219"]]
|
13276
|
+
[1m[35m (9.9ms)[0m [1m[35mCOMMIT[0m
|
13277
|
+
[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]]
|
13278
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13279
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13280
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13281
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13282
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13283
|
+
[1m[35m (7.6ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13284
|
+
[1m[35m (7.3ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13285
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13286
|
+
[1m[35m (2.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
|
13287
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13288
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13289
|
+
Migrating to CreatePosts (20170310230225)
|
13290
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13291
|
+
[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
|
13292
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13293
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230225"]]
|
13294
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13295
|
+
[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]]
|
13296
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13297
|
+
[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", 2017-03-10 23:02:27 UTC], ["updated_at", 2017-03-10 23:02:27 UTC]]
|
13298
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13299
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13300
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13301
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13303
|
+
Migrating to CreateUsers (20170310230230)
|
13304
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
13305
|
+
[1m[35m (13.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
|
13306
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13307
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230230"]]
|
13308
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
13309
|
+
[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]]
|
13310
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13311
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13312
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13313
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13314
|
+
[1m[35m (7.4ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13315
|
+
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13316
|
+
[1m[35m (8.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13317
|
+
[1m[35m (1.9ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13318
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13319
|
+
[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
|
13320
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13321
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13322
|
+
Migrating to CreatePosts (20170310230236)
|
13323
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13324
|
+
[1m[35m (4.0ms)[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
|
13325
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13326
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230236"]]
|
13327
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13328
|
+
[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]]
|
13329
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13330
|
+
[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-10 23:02:39 UTC], ["updated_at", 2017-03-10 23:02:39 UTC]]
|
13331
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13332
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13333
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13334
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13335
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13336
|
+
Migrating to CreateUsers (20170310230242)
|
13337
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13338
|
+
[1m[35m (12.9ms)[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
|
13339
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13340
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230242"]]
|
13341
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13342
|
+
[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]]
|
13343
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13344
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13345
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13346
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13347
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13348
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13349
|
+
Migrating to ChangeTheModelPostAtTime1489186964 (20170310230247)
|
13350
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13351
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "posts" ADD "user_id" integer[0m
|
13352
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
13353
|
+
[1m[35m (4.3ms)[0m [1m[35mALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
|
13354
|
+
FOREIGN KEY ("user_id")
|
13355
|
+
REFERENCES "users" ("id")
|
13356
|
+
[0m
|
13357
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230247"]]
|
13358
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13359
|
+
[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]]
|
13360
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13361
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13362
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13363
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13364
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13365
|
+
[1m[35m (13.0ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13366
|
+
[1m[35m (2.8ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13367
|
+
[1m[35m (2.0ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13368
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13369
|
+
[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
|
13370
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13371
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13372
|
+
Migrating to CreatePosts (20170310230253)
|
13373
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13374
|
+
[1m[35m (3.9ms)[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
|
13375
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13376
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230253"]]
|
13377
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13378
|
+
Migrating to CreateUsers (20170310230256)
|
13379
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
13380
|
+
[1m[35m (4.1ms)[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
|
13381
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13382
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230256"]]
|
13383
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
13384
|
+
Migrating to CreateUserPosts (20170310230259)
|
13385
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
13386
|
+
[1m[35m (4.8ms)[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"
|
13387
|
+
FOREIGN KEY ("user_id")
|
13388
|
+
REFERENCES "users" ("id")
|
13389
|
+
, CONSTRAINT "fk_rails_38a7c4b06f"
|
13390
|
+
FOREIGN KEY ("post_id")
|
13391
|
+
REFERENCES "posts" ("id")
|
13392
|
+
)[0m
|
13393
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
13394
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
13395
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170310230259"]]
|
13396
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13397
|
+
[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]]
|
13398
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13399
|
+
[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", 2017-03-10 23:03:01 UTC], ["updated_at", 2017-03-10 23:03:01 UTC]]
|
13400
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13401
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13402
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13403
|
+
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13404
|
+
[1m[35m (12.9ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13405
|
+
[1m[35m (2.9ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13406
|
+
[1m[35m (3.4ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13407
|
+
[1m[35m (2.5ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
13408
|
+
[1m[35m (40.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13409
|
+
[1m[35m (20.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
|
13410
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13411
|
+
[1m[36mActiveRecord::SchemaMigration Load (6.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13412
|
+
Migrating to ChangeTheModelPostAtTime1489422361 (20170313162606)
|
13413
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
13414
|
+
[1m[35m (20.8ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
13415
|
+
[1m[35mSQL (24.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162606"]]
|
13416
|
+
[1m[35m (5.7ms)[0m [1m[35mCOMMIT[0m
|
13417
|
+
[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]]
|
13418
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13419
|
+
[1m[35mSQL (6.3ms)[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-13 16:26:09 UTC], ["updated_at", 2017-03-13 16:26:09 UTC]]
|
13420
|
+
[1m[35m (6.2ms)[0m [1m[35mCOMMIT[0m
|
13421
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13422
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13423
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13424
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13425
|
+
Migrating to ChangeTheModelUserAtTime1489422369 (20170313162613)
|
13426
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13427
|
+
[1m[35m (27.6ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key)[0m
|
13428
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162613"]]
|
13429
|
+
[1m[35m (6.8ms)[0m [1m[35mCOMMIT[0m
|
13430
|
+
[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]]
|
13431
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13432
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13433
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13434
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13435
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13436
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13437
|
+
Migrating to ChangeTheModelPostAtTime1489422377 (20170313162621)
|
13438
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13439
|
+
[1m[35m (24.3ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
13440
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
13441
|
+
[1m[35m (6.0ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
13442
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
13443
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
13444
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162621"]]
|
13445
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
13446
|
+
[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]]
|
13447
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13448
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13449
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13450
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13451
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13452
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13453
|
+
Migrating to ChangeTheModelPostAtTime1489422384 (20170313162627)
|
13454
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
13455
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162627"]]
|
13456
|
+
[1m[35m (8.6ms)[0m [1m[35mCOMMIT[0m
|
13457
|
+
[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]]
|
13458
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13459
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13460
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13461
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13462
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13463
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13464
|
+
Migrating to ChangeTheModelPostAtTime1489422391 (20170313162634)
|
13465
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13466
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
13467
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162634"]]
|
13468
|
+
[1m[35m (8.5ms)[0m [1m[35mCOMMIT[0m
|
13469
|
+
[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]]
|
13470
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13471
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13472
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13473
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13474
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13475
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13476
|
+
Migrating to ChangeTheModelPostAtTime1489422397 (20170313162640)
|
13477
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13478
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
13479
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
13480
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162640"]]
|
13481
|
+
[1m[35m (8.6ms)[0m [1m[35mCOMMIT[0m
|
13482
|
+
[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]]
|
13483
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
13484
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13485
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13486
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13487
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13488
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13489
|
+
Migrating to ChangeTheModelPostAtTime1489422403 (20170313162646)
|
13490
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13491
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
13492
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
13493
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162646"]]
|
13494
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13495
|
+
[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]]
|
13496
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13497
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13498
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13499
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13500
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13501
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13502
|
+
Migrating to ChangeTheModelPostAtTime1489422409 (20170313162653)
|
13503
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13504
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
13505
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162653"]]
|
13506
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
13507
|
+
[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]]
|
13508
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13509
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13510
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13511
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13512
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13513
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13514
|
+
Migrating to ChangeTheModelPostAtTime1489422416 (20170313162701)
|
13515
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13516
|
+
[1m[35m (1.8ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
13517
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162701"]]
|
13518
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
13519
|
+
[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]]
|
13520
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13521
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13522
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13523
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13524
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13525
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13526
|
+
Migrating to ChangeTheModelPostAtTime1489422424 (20170313162708)
|
13527
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13528
|
+
[1m[35m (2.5ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
13529
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162708"]]
|
13530
|
+
[1m[35m (9.8ms)[0m [1m[35mCOMMIT[0m
|
13531
|
+
[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]]
|
13532
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13533
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13534
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13535
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13536
|
+
[1m[35m (11.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13537
|
+
[1m[35m (7.1ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13538
|
+
[1m[35m (5.9ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13539
|
+
[1m[35m (8.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13540
|
+
[1m[35m (3.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
|
13541
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13542
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13543
|
+
Migrating to CreatePosts (20170313162715)
|
13544
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13545
|
+
[1m[35m (4.0ms)[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
|
13546
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13547
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162715"]]
|
13548
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13549
|
+
[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]]
|
13550
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13551
|
+
[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", 2017-03-13 16:27:17 UTC], ["updated_at", 2017-03-13 16:27:17 UTC]]
|
13552
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13553
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13554
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13555
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13556
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13557
|
+
Migrating to CreateUsers (20170313162721)
|
13558
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13559
|
+
[1m[35m (4.9ms)[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
|
13560
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13561
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162721"]]
|
13562
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13563
|
+
[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]]
|
13564
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13565
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13566
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13567
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13568
|
+
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13569
|
+
[1m[35m (7.1ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13570
|
+
[1m[35m (7.4ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13571
|
+
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13572
|
+
[1m[35m (15.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13573
|
+
[1m[35m (4.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
|
13574
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13575
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13576
|
+
Migrating to CreatePosts (20170313162728)
|
13577
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13578
|
+
[1m[35m (4.9ms)[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
|
13579
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13580
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162728"]]
|
13581
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13582
|
+
[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]]
|
13583
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13584
|
+
[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-13 16:27:31 UTC], ["updated_at", 2017-03-13 16:27:31 UTC]]
|
13585
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
13586
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13587
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13588
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13589
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13590
|
+
Migrating to CreateUsers (20170313162734)
|
13591
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13592
|
+
[1m[35m (13.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
|
13593
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13594
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162734"]]
|
13595
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13596
|
+
[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]]
|
13597
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13598
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
13599
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13600
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13601
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13602
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13603
|
+
Migrating to ChangeTheModelPostAtTime1489422458 (20170313162744)
|
13604
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13605
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "posts" ADD "user_id" integer[0m
|
13606
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
13607
|
+
[1m[35m (8.1ms)[0m [1m[35mALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
|
13608
|
+
FOREIGN KEY ("user_id")
|
13609
|
+
REFERENCES "users" ("id")
|
13610
|
+
[0m
|
13611
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162744"]]
|
13612
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13613
|
+
[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]]
|
13614
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13615
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13616
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13617
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13618
|
+
[1m[35m (7.3ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13619
|
+
[1m[35m (8.1ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13620
|
+
[1m[35m (5.3ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13621
|
+
[1m[35m (2.0ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13622
|
+
[1m[35m (22.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13623
|
+
[1m[35m (19.7ms)[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
|
13624
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13625
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13626
|
+
Migrating to CreatePosts (20170313162751)
|
13627
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13628
|
+
[1m[35m (15.9ms)[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
|
13629
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13630
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162751"]]
|
13631
|
+
[1m[35m (6.4ms)[0m [1m[35mCOMMIT[0m
|
13632
|
+
Migrating to CreateUsers (20170313162754)
|
13633
|
+
[1m[35m (6.3ms)[0m [1m[35mBEGIN[0m
|
13634
|
+
[1m[35m (39.9ms)[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
|
13635
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13636
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162754"]]
|
13637
|
+
[1m[35m (8.3ms)[0m [1m[35mCOMMIT[0m
|
13638
|
+
Migrating to CreateUserPosts (20170313162758)
|
13639
|
+
[1m[35m (5.8ms)[0m [1m[35mBEGIN[0m
|
13640
|
+
[1m[35m (17.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"
|
13641
|
+
FOREIGN KEY ("user_id")
|
13642
|
+
REFERENCES "users" ("id")
|
13643
|
+
, CONSTRAINT "fk_rails_38a7c4b06f"
|
13644
|
+
FOREIGN KEY ("post_id")
|
13645
|
+
REFERENCES "posts" ("id")
|
13646
|
+
)[0m
|
13647
|
+
[1m[35m (12.1ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
13648
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
13649
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313162758"]]
|
13650
|
+
[1m[35m (6.3ms)[0m [1m[35mCOMMIT[0m
|
13651
|
+
[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]]
|
13652
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13653
|
+
[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-13 16:28:01 UTC], ["updated_at", 2017-03-13 16:28:01 UTC]]
|
13654
|
+
[1m[35m (5.5ms)[0m [1m[35mCOMMIT[0m
|
13655
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13656
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13657
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13658
|
+
[1m[35m (14.2ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13659
|
+
[1m[35m (8.7ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13660
|
+
[1m[35m (8.9ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13661
|
+
[1m[35m (7.1ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
13662
|
+
[1m[35m (4.6ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13663
|
+
[1m[35m (9.3ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13664
|
+
[1m[35m (8.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13665
|
+
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13666
|
+
[1m[35m (2.8ms)[0m [1m[35mDROP TABLE if exists POST_USERS cascade;[0m
|
13667
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13668
|
+
[1m[35m (19.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
|
13669
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13670
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13671
|
+
Migrating to ChangeTheModelPostAtTime1489424046 (20170313165409)
|
13672
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13673
|
+
[1m[35m (15.1ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
13674
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165409"]]
|
13675
|
+
[1m[35m (6.5ms)[0m [1m[35mCOMMIT[0m
|
13676
|
+
[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]]
|
13677
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13678
|
+
[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", 2017-03-13 16:54:12 UTC], ["updated_at", 2017-03-13 16:54:12 UTC]]
|
13679
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13680
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13681
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13682
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13683
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13684
|
+
Migrating to ChangeTheModelUserAtTime1489424052 (20170313165415)
|
13685
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13686
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key)[0m
|
13687
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165415"]]
|
13688
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
13689
|
+
[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]]
|
13690
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13691
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
13692
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13693
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13694
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13695
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13696
|
+
Migrating to ChangeTheModelPostAtTime1489424058 (20170313165422)
|
13697
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13698
|
+
[1m[35m (5.9ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
13699
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
13700
|
+
[1m[35m (3.5ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
13701
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
13702
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
13703
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165422"]]
|
13704
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
13705
|
+
[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]]
|
13706
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13707
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13708
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13709
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13710
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13711
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13712
|
+
Migrating to ChangeTheModelPostAtTime1489424066 (20170313165429)
|
13713
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13714
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165429"]]
|
13715
|
+
[1m[35m (7.9ms)[0m [1m[35mCOMMIT[0m
|
13716
|
+
[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]]
|
13717
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13718
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13719
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13720
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13721
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13722
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13723
|
+
Migrating to ChangeTheModelPostAtTime1489424072 (20170313165435)
|
13724
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13725
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
13726
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165435"]]
|
13727
|
+
[1m[35m (7.7ms)[0m [1m[35mCOMMIT[0m
|
13728
|
+
[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]]
|
13729
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
13730
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13731
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13732
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13733
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13734
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13735
|
+
Migrating to ChangeTheModelPostAtTime1489424078 (20170313165442)
|
13736
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13737
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
13738
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
13739
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165442"]]
|
13740
|
+
[1m[35m (7.7ms)[0m [1m[35mCOMMIT[0m
|
13741
|
+
[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]]
|
13742
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13743
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13744
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13745
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13746
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13747
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13748
|
+
Migrating to ChangeTheModelPostAtTime1489424084 (20170313165447)
|
13749
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
13750
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
13751
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
13752
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165447"]]
|
13753
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
13754
|
+
[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]]
|
13755
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13756
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
13757
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13758
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13759
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13760
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13761
|
+
Migrating to ChangeTheModelPostAtTime1489424090 (20170313165453)
|
13762
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13763
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
13764
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165453"]]
|
13765
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
13766
|
+
[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]]
|
13767
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13768
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13769
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13770
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13771
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13772
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13773
|
+
Migrating to ChangeTheModelPostAtTime1489424096 (20170313165459)
|
13774
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13775
|
+
[1m[35m (0.9ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
13776
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165459"]]
|
13777
|
+
[1m[35m (9.4ms)[0m [1m[35mCOMMIT[0m
|
13778
|
+
[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]]
|
13779
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13780
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13781
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13782
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13783
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13784
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13785
|
+
Migrating to ChangeTheModelPostAtTime1489424102 (20170313165505)
|
13786
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13787
|
+
[1m[35m (2.0ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
13788
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165505"]]
|
13789
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
13790
|
+
[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]]
|
13791
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13792
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13793
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13794
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13795
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13796
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13797
|
+
[1m[35m (8.5ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13798
|
+
[1m[35m (15.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13799
|
+
[1m[35m (3.4ms)[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
|
13800
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13801
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13802
|
+
Migrating to CreatePosts (20170313165511)
|
13803
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13804
|
+
[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
|
13805
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13806
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165511"]]
|
13807
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13808
|
+
[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]]
|
13809
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13810
|
+
[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", 2017-03-13 16:55:13 UTC], ["updated_at", 2017-03-13 16:55:13 UTC]]
|
13811
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13812
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13813
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13814
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13815
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13816
|
+
Migrating to CreateUsers (20170313165516)
|
13817
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13818
|
+
[1m[35m (4.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
|
13819
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13820
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165516"]]
|
13821
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13822
|
+
[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]]
|
13823
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13824
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13825
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13826
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13827
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13828
|
+
[1m[35m (7.3ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13829
|
+
[1m[35m (8.5ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13830
|
+
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13831
|
+
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13832
|
+
[1m[35m (4.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
|
13833
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13834
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13835
|
+
Migrating to CreatePosts (20170313165522)
|
13836
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13837
|
+
[1m[35m (4.4ms)[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
|
13838
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13839
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165522"]]
|
13840
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
13841
|
+
[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]]
|
13842
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13843
|
+
[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", 2017-03-13 16:55:24 UTC], ["updated_at", 2017-03-13 16:55:24 UTC]]
|
13844
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13845
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13846
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13847
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13848
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13849
|
+
Migrating to CreateUsers (20170313165527)
|
13850
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13851
|
+
[1m[35m (12.5ms)[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
|
13852
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13853
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165527"]]
|
13854
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13855
|
+
[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]]
|
13856
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13857
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13858
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13859
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13860
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13861
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13862
|
+
Migrating to ChangeTheModelPostAtTime1489424130 (20170313165533)
|
13863
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13864
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "posts" ADD "user_id" integer[0m
|
13865
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
13866
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
|
13867
|
+
FOREIGN KEY ("user_id")
|
13868
|
+
REFERENCES "users" ("id")
|
13869
|
+
[0m
|
13870
|
+
[1m[35mSQL (3.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165533"]]
|
13871
|
+
[1m[35m (6.7ms)[0m [1m[35mCOMMIT[0m
|
13872
|
+
[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]]
|
13873
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13874
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13875
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13876
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13877
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13878
|
+
[1m[35m (7.4ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13879
|
+
[1m[35m (7.3ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13880
|
+
[1m[35m (12.1ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13881
|
+
[1m[35m (13.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13882
|
+
[1m[35m (3.4ms)[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
|
13883
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13884
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13885
|
+
Migrating to CreatePosts (20170313165538)
|
13886
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13887
|
+
[1m[35m (3.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
|
13888
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
13889
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165538"]]
|
13890
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13891
|
+
Migrating to CreateUsers (20170313165541)
|
13892
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
13893
|
+
[1m[35m (3.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
|
13894
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
13895
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165541"]]
|
13896
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13897
|
+
Migrating to CreateUserPosts (20170313165544)
|
13898
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13899
|
+
[1m[35m (5.6ms)[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"
|
13900
|
+
FOREIGN KEY ("user_id")
|
13901
|
+
REFERENCES "users" ("id")
|
13902
|
+
, CONSTRAINT "fk_rails_38a7c4b06f"
|
13903
|
+
FOREIGN KEY ("post_id")
|
13904
|
+
REFERENCES "posts" ("id")
|
13905
|
+
)[0m
|
13906
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
13907
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
13908
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313165544"]]
|
13909
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13910
|
+
[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]]
|
13911
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13912
|
+
[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-13 16:55:47 UTC], ["updated_at", 2017-03-13 16:55:47 UTC]]
|
13913
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
13914
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13915
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13916
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13917
|
+
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13918
|
+
[1m[35m (12.7ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13919
|
+
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13920
|
+
[1m[35m (2.3ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
13921
|
+
[1m[35m (5.0ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
13922
|
+
[1m[35m (8.1ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
13923
|
+
[1m[35m (15.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
13924
|
+
[1m[35m (3.0ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
13925
|
+
[1m[35m (2.0ms)[0m [1m[35mDROP TABLE if exists REGISTRATIONS cascade;[0m
|
13926
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
13927
|
+
[1m[35m (19.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
|
13928
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13929
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13930
|
+
Migrating to ChangeTheModelPostAtTime1489425223 (20170313171346)
|
13931
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13932
|
+
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
13933
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171346"]]
|
13934
|
+
[1m[35m (6.5ms)[0m [1m[35mCOMMIT[0m
|
13935
|
+
[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]]
|
13936
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13937
|
+
[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-13 17:13:48 UTC], ["updated_at", 2017-03-13 17:13:48 UTC]]
|
13938
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13939
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13940
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13941
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13942
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13943
|
+
Migrating to ChangeTheModelUserAtTime1489425229 (20170313171351)
|
13944
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13945
|
+
[1m[35m (11.0ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key)[0m
|
13946
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171351"]]
|
13947
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
13948
|
+
[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]]
|
13949
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13950
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13951
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13952
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13953
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13954
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13955
|
+
Migrating to ChangeTheModelPostAtTime1489425234 (20170313171357)
|
13956
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13957
|
+
[1m[35m (5.8ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
13958
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
13959
|
+
[1m[35m (2.7ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
13960
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
13961
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
13962
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171357"]]
|
13963
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
13964
|
+
[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]]
|
13965
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13966
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13967
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13968
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13969
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13970
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13971
|
+
Migrating to ChangeTheModelPostAtTime1489425239 (20170313171402)
|
13972
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
13973
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171402"]]
|
13974
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13975
|
+
[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]]
|
13976
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13977
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13978
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13979
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13980
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13981
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13982
|
+
Migrating to ChangeTheModelPostAtTime1489425245 (20170313171407)
|
13983
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13984
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
13985
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171407"]]
|
13986
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
13987
|
+
[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]]
|
13988
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13989
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
13990
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
13991
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13992
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
13993
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13994
|
+
Migrating to ChangeTheModelPostAtTime1489425250 (20170313171413)
|
13995
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
13996
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
13997
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
13998
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171413"]]
|
13999
|
+
[1m[35m (8.6ms)[0m [1m[35mCOMMIT[0m
|
14000
|
+
[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]]
|
14001
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14002
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14003
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14004
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14005
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14006
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14007
|
+
Migrating to ChangeTheModelPostAtTime1489425255 (20170313171418)
|
14008
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
14009
|
+
[1m[35m (9.1ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
14010
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
14011
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171418"]]
|
14012
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
14013
|
+
[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]]
|
14014
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14015
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14016
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14017
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14018
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14019
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14020
|
+
Migrating to ChangeTheModelPostAtTime1489425260 (20170313171423)
|
14021
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14022
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
14023
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171423"]]
|
14024
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
14025
|
+
[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]]
|
14026
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14027
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14028
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14029
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14030
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14031
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14032
|
+
Migrating to ChangeTheModelPostAtTime1489425266 (20170313171428)
|
14033
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14034
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
14035
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171428"]]
|
14036
|
+
[1m[35m (9.1ms)[0m [1m[35mCOMMIT[0m
|
14037
|
+
[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]]
|
14038
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14039
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14040
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14041
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14042
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14043
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14044
|
+
Migrating to ChangeTheModelPostAtTime1489425271 (20170313171434)
|
14045
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14046
|
+
[1m[35m (2.3ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
14047
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171434"]]
|
14048
|
+
[1m[35m (3.5ms)[0m [1m[35mCOMMIT[0m
|
14049
|
+
[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]]
|
14050
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
14051
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14052
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14053
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14054
|
+
[1m[35m (7.9ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
14055
|
+
[1m[35m (12.6ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
14056
|
+
[1m[35m (6.4ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
14057
|
+
[1m[35m (12.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
14058
|
+
[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
|
14059
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14060
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14061
|
+
Migrating to CreatePosts (20170313171439)
|
14062
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
14063
|
+
[1m[35m (3.4ms)[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
|
14064
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
14065
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171439"]]
|
14066
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
14067
|
+
[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]]
|
14068
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14069
|
+
[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-13 17:14:42 UTC], ["updated_at", 2017-03-13 17:14:42 UTC]]
|
14070
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
14071
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14072
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14073
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14074
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14075
|
+
Migrating to CreateUsers (20170313171444)
|
14076
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14077
|
+
[1m[35m (12.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
|
14078
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
14079
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171444"]]
|
14080
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
14081
|
+
[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]]
|
14082
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14083
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14084
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14085
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14086
|
+
[1m[35m (7.9ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
14087
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
14088
|
+
[1m[35m (8.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
14089
|
+
[1m[35m (2.4ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
14090
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
14091
|
+
[1m[35m (19.7ms)[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
|
14092
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14093
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14094
|
+
Migrating to CreatePosts (20170313171450)
|
14095
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14096
|
+
[1m[35m (5.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
|
14097
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
14098
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171450"]]
|
14099
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
14100
|
+
[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]]
|
14101
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
14102
|
+
[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-13 17:14:53 UTC], ["updated_at", 2017-03-13 17:14:53 UTC]]
|
14103
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
14104
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14105
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14106
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14108
|
+
Migrating to CreateUsers (20170313171455)
|
14109
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
14110
|
+
[1m[35m (5.3ms)[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
|
14111
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
14112
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171455"]]
|
14113
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
14114
|
+
[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]]
|
14115
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14116
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14117
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14118
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14119
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14120
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14121
|
+
Migrating to ChangeTheModelPostAtTime1489425298 (20170313171500)
|
14122
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
14123
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER TABLE "posts" ADD "user_id" integer[0m
|
14124
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")[0m
|
14125
|
+
[1m[35m (4.5ms)[0m [1m[35mALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
|
14126
|
+
FOREIGN KEY ("user_id")
|
14127
|
+
REFERENCES "users" ("id")
|
14128
|
+
[0m
|
14129
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171500"]]
|
14130
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
14131
|
+
[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]]
|
14132
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14133
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
14134
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14135
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14136
|
+
[1m[35m (8.1ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
14137
|
+
[1m[35m (7.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
14138
|
+
[1m[35m (6.0ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
14139
|
+
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
14140
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
14141
|
+
[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
|
14142
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
14143
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14144
|
+
Migrating to CreatePosts (20170313171506)
|
14145
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
14146
|
+
[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
|
14147
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
14148
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171506"]]
|
14149
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
14150
|
+
Migrating to CreateUsers (20170313171509)
|
14151
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
14152
|
+
[1m[35m (6.5ms)[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
|
14153
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
14154
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171509"]]
|
14155
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
14156
|
+
Migrating to CreateUserPosts (20170313171512)
|
14157
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
14158
|
+
[1m[35m (2.9ms)[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"
|
14159
|
+
FOREIGN KEY ("user_id")
|
14160
|
+
REFERENCES "users" ("id")
|
14161
|
+
, CONSTRAINT "fk_rails_38a7c4b06f"
|
14162
|
+
FOREIGN KEY ("post_id")
|
14163
|
+
REFERENCES "posts" ("id")
|
14164
|
+
)[0m
|
14165
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
14166
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
14167
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170313171512"]]
|
14168
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
14169
|
+
[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]]
|
14170
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
14171
|
+
[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", 2017-03-13 17:15:14 UTC], ["updated_at", 2017-03-13 17:15:14 UTC]]
|
14172
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
14173
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
14174
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14175
|
+
[1m[35m (7.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
14176
|
+
[1m[35m (13.5ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
14177
|
+
[1m[35m (8.1ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
14178
|
+
[1m[35m (8.6ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
14179
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|