localtower 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10288,3 +10288,2604 @@ FOREIGN KEY ("post_id")
10288
10288
   (9.1ms) DROP TABLE if exists USERS cascade;
10289
10289
   (2.5ms) DROP TABLE if exists POSTS cascade;
10290
10290
   (2.0ms) DROP TABLE if exists USER_POSTS cascade;
10291
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10292
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10293
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10294
+  (0.3ms) BEGIN
10295
+ SQL (0.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", 2017-03-09 08:14:37 UTC], ["key", "environment"]]
10296
+  (0.6ms) COMMIT
10297
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10298
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10299
+  (33.6ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10300
+  (22.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10301
+  (13.5ms) DROP TABLE if exists USERS cascade;
10302
+  (24.8ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10303
+  (19.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10304
+  (1.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10305
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10306
+ Migrating to ChangeTheModelPostAtTime1489176009 (20170310200012)
10307
+  (0.2ms) BEGIN
10308
+  (28.9ms) CREATE TABLE "posts" ("id" serial primary key)
10309
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200012"]]
10310
+  (6.1ms) COMMIT
10311
+ ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10312
+  (0.3ms) BEGIN
10313
+ SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:00:15 UTC], ["updated_at", 2017-03-10 20:00:15 UTC]]
10314
+  (0.5ms) COMMIT
10315
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10316
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10317
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10318
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10319
+ Migrating to ChangeTheModelUserAtTime1489176015 (20170310200018)
10320
+  (0.3ms) BEGIN
10321
+  (3.5ms) CREATE TABLE "users" ("id" serial primary key)
10322
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200018"]]
10323
+  (0.6ms) COMMIT
10324
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10325
+  (0.2ms) BEGIN
10326
+  (0.2ms) COMMIT
10327
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10328
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10329
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10330
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10331
+ Migrating to ChangeTheModelPostAtTime1489176021 (20170310200024)
10332
+  (0.3ms) BEGIN
10333
+  (10.9ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
10334
+  (1.3ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
10335
+  (2.8ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
10336
+  (0.3ms) ALTER TABLE "posts" ADD "content" text
10337
+  (0.3ms) ALTER TABLE "posts" ADD "title" character varying
10338
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200024"]]
10339
+  (2.8ms) COMMIT
10340
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10341
+  (0.2ms) BEGIN
10342
+  (0.2ms) COMMIT
10343
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10344
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10345
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10346
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10347
+ Migrating to ChangeTheModelPostAtTime1489176027 (20170310200030)
10348
+  (0.3ms) BEGIN
10349
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200030"]]
10350
+  (0.5ms) COMMIT
10351
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10352
+  (0.2ms) BEGIN
10353
+  (0.2ms) COMMIT
10354
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10355
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10356
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10357
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10358
+ Migrating to ChangeTheModelPostAtTime1489176033 (20170310200036)
10359
+  (0.3ms) BEGIN
10360
+  (6.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
10361
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200036"]]
10362
+  (6.4ms) COMMIT
10363
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10364
+  (0.2ms) BEGIN
10365
+  (0.2ms) COMMIT
10366
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10367
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10368
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10369
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10370
+ Migrating to ChangeTheModelPostAtTime1489176038 (20170310200041)
10371
+  (0.3ms) BEGIN
10372
+  (0.4ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
10373
+  (1.5ms) ALTER TABLE "posts" DROP "title"
10374
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200041"]]
10375
+  (0.6ms) COMMIT
10376
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10377
+  (0.2ms) BEGIN
10378
+  (0.2ms) COMMIT
10379
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10380
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10381
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10382
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10383
+ Migrating to ChangeTheModelPostAtTime1489176044 (20170310200047)
10384
+  (0.3ms) BEGIN
10385
+  (1.3ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
10386
+  (1.3ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
10387
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200047"]]
10388
+  (0.5ms) COMMIT
10389
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10390
+  (0.2ms) BEGIN
10391
+  (0.1ms) COMMIT
10392
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10393
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10394
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10395
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10396
+ Migrating to ChangeTheModelPostAtTime1489176050 (20170310200053)
10397
+  (0.3ms) BEGIN
10398
+  (9.3ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
10399
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200053"]]
10400
+  (0.6ms) COMMIT
10401
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10402
+  (0.2ms) BEGIN
10403
+  (0.2ms) COMMIT
10404
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10405
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10406
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10407
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10408
+ Migrating to ChangeTheModelPostAtTime1489176056 (20170310200059)
10409
+  (0.3ms) BEGIN
10410
+  (8.8ms) ALTER TABLE "posts" ADD "user_id" references NOT NULL
10411
+  (0.2ms) ROLLBACK
10412
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10413
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10414
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10415
+ Migrating to ChangeTheModelPostAtTime1489176056 (20170310200059)
10416
+  (0.4ms) BEGIN
10417
+  (0.4ms) ALTER TABLE "posts" ADD "user_id" references NOT NULL
10418
+  (0.1ms) ROLLBACK
10419
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10420
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10421
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10422
+ Migrating to ChangeTheModelPostAtTime1489176056 (20170310200059)
10423
+  (0.3ms) BEGIN
10424
+  (0.3ms) ALTER TABLE "posts" ADD "user_id" references NOT NULL
10425
+  (0.2ms) ROLLBACK
10426
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10427
+  (7.2ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10428
+  (7.6ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10429
+  (8.8ms) DROP TABLE if exists POSTS cascade;
10430
+  (3.1ms) DROP TABLE if exists USERS cascade;
10431
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10432
+  (2.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10433
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10434
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10435
+ Migrating to CreatePosts (20170310200116)
10436
+  (0.2ms) BEGIN
10437
+  (2.8ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10438
+  (0.7ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
10439
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200116"]]
10440
+  (0.5ms) COMMIT
10441
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10442
+  (0.1ms) BEGIN
10443
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:01:18 UTC], ["updated_at", 2017-03-10 20:01:18 UTC]]
10444
+  (0.4ms) COMMIT
10445
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10446
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10447
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10448
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10449
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10450
+  (0.2ms) BEGIN
10451
+  (0.1ms) COMMIT
10452
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10453
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10454
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10455
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
10456
+ Migrating to CreateUsers (20170310200124)
10457
+  (0.3ms) BEGIN
10458
+  (11.2ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10459
+  (1.7ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
10460
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200124"]]
10461
+  (0.7ms) COMMIT
10462
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10463
+  (0.2ms) BEGIN
10464
+  (0.2ms) COMMIT
10465
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10466
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10467
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10468
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10469
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10470
+  (0.3ms) BEGIN
10471
+  (0.2ms) COMMIT
10472
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10473
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10474
+  (7.6ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10475
+  (7.7ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10476
+  (8.2ms) DROP TABLE if exists POSTS cascade;
10477
+  (2.8ms) DROP TABLE if exists USERS cascade;
10478
+  (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10479
+  (2.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10480
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10481
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10482
+ Migrating to CreatePosts (20170310200133)
10483
+  (0.2ms) BEGIN
10484
+  (14.8ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10485
+  (7.2ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
10486
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200133"]]
10487
+  (6.2ms) COMMIT
10488
+ Migrating to CreateUsers (20170310200137)
10489
+  (6.3ms) BEGIN
10490
+  (20.0ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10491
+  (1.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
10492
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200137"]]
10493
+  (0.6ms) COMMIT
10494
+ Migrating to CreateUserPosts (20170310200140)
10495
+  (0.3ms) BEGIN
10496
+  (11.3ms) CREATE 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"
10497
+ FOREIGN KEY ("user_id")
10498
+ REFERENCES "users" ("id")
10499
+ , CONSTRAINT "fk_rails_38a7c4b06f"
10500
+ FOREIGN KEY ("post_id")
10501
+ REFERENCES "posts" ("id")
10502
+ )
10503
+  (1.0ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
10504
+  (0.9ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
10505
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200140"]]
10506
+  (0.5ms) COMMIT
10507
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10508
+  (0.3ms) BEGIN
10509
+ SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:01:43 UTC], ["updated_at", 2017-03-10 20:01:43 UTC]]
10510
+  (0.4ms) COMMIT
10511
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10512
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10513
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10514
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10515
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10516
+  (0.5ms) BEGIN
10517
+  (0.2ms) COMMIT
10518
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10519
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10520
+  (7.3ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10521
+  (13.3ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10522
+  (12.1ms) DROP TABLE if exists USERS cascade;
10523
+  (3.7ms) DROP TABLE if exists POSTS cascade;
10524
+  (3.1ms) DROP TABLE if exists USER_POSTS cascade;
10525
+  (12.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10526
+  (3.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10527
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10528
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10529
+ Migrating to ChangeTheModelPostAtTime1489176117 (20170310200200)
10530
+  (0.2ms) BEGIN
10531
+  (2.2ms) CREATE TABLE "posts" ("id" serial primary key)
10532
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200200"]]
10533
+  (0.5ms) COMMIT
10534
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10535
+  (0.2ms) BEGIN
10536
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:02:03 UTC], ["updated_at", 2017-03-10 20:02:03 UTC]]
10537
+  (0.5ms) COMMIT
10538
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10539
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10540
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10541
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10542
+ Migrating to ChangeTheModelUserAtTime1489176123 (20170310200206)
10543
+  (0.2ms) BEGIN
10544
+  (10.8ms) CREATE TABLE "users" ("id" serial primary key)
10545
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200206"]]
10546
+  (1.9ms) COMMIT
10547
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10548
+  (0.3ms) BEGIN
10549
+  (0.2ms) COMMIT
10550
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10551
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10552
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10553
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10554
+ Migrating to ChangeTheModelPostAtTime1489176128 (20170310200211)
10555
+  (0.3ms) BEGIN
10556
+  (15.5ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
10557
+  (1.1ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
10558
+  (4.0ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
10559
+  (0.4ms) ALTER TABLE "posts" ADD "content" text
10560
+  (0.4ms) ALTER TABLE "posts" ADD "title" character varying
10561
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200211"]]
10562
+  (1.7ms) COMMIT
10563
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10564
+  (0.1ms) BEGIN
10565
+  (0.2ms) COMMIT
10566
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10567
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10568
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10569
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10570
+ Migrating to ChangeTheModelPostAtTime1489176134 (20170310200217)
10571
+  (0.3ms) BEGIN
10572
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200217"]]
10573
+  (0.5ms) COMMIT
10574
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10575
+  (0.2ms) BEGIN
10576
+  (0.2ms) COMMIT
10577
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10578
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10579
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10580
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10581
+ Migrating to ChangeTheModelPostAtTime1489176139 (20170310200222)
10582
+  (0.3ms) BEGIN
10583
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
10584
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200222"]]
10585
+  (8.6ms) COMMIT
10586
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10587
+  (0.2ms) BEGIN
10588
+  (0.2ms) COMMIT
10589
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10590
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10591
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10592
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10593
+ Migrating to ChangeTheModelPostAtTime1489176145 (20170310200228)
10594
+  (0.2ms) BEGIN
10595
+  (0.6ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
10596
+  (0.5ms) ALTER TABLE "posts" DROP "title"
10597
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200228"]]
10598
+  (0.6ms) COMMIT
10599
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10600
+  (0.2ms) BEGIN
10601
+  (0.2ms) COMMIT
10602
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10603
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10604
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10605
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10606
+ Migrating to ChangeTheModelPostAtTime1489176151 (20170310200234)
10607
+  (0.2ms) BEGIN
10608
+  (9.9ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
10609
+  (0.6ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
10610
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200234"]]
10611
+  (0.5ms) COMMIT
10612
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10613
+  (0.3ms) BEGIN
10614
+  (0.3ms) COMMIT
10615
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10616
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10617
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10618
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10619
+ Migrating to ChangeTheModelPostAtTime1489176156 (20170310200239)
10620
+  (0.3ms) BEGIN
10621
+  (2.2ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
10622
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310200239"]]
10623
+  (0.6ms) COMMIT
10624
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10625
+  (0.2ms) BEGIN
10626
+  (0.7ms) COMMIT
10627
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10628
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10629
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10630
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10631
+ Migrating to ChangeTheModelPostAtTime1489176162 (20170310200246)
10632
+  (0.3ms) BEGIN
10633
+  (8.1ms) ALTER TABLE "posts" ADD "user_id" references NOT NULL
10634
+  (0.2ms) ROLLBACK
10635
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10636
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10637
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10638
+ Migrating to ChangeTheModelPostAtTime1489176162 (20170310200246)
10639
+  (0.3ms) BEGIN
10640
+  (0.4ms) ALTER TABLE "posts" ADD "user_id" references NOT NULL
10641
+  (0.2ms) ROLLBACK
10642
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10643
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10644
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10645
+ Migrating to ChangeTheModelPostAtTime1489176162 (20170310200246)
10646
+  (0.3ms) BEGIN
10647
+  (0.5ms) ALTER TABLE "posts" ADD "user_id" references NOT NULL
10648
+  (0.2ms) ROLLBACK
10649
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10650
+  (9.2ms) DROP TABLE if exists POSTS cascade;
10651
+  (8.2ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10652
+  (7.7ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10653
+  (7.7ms) DROP TABLE if exists USERS cascade;
10654
+  (22.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10655
+  (19.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10656
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10657
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10658
+ Migrating to ChangeTheModelPostAtTime1489176606 (20170310201009)
10659
+  (0.2ms) BEGIN
10660
+  (14.7ms) CREATE TABLE "posts" ("id" serial primary key)
10661
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201009"]]
10662
+  (6.6ms) COMMIT
10663
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10664
+  (0.2ms) BEGIN
10665
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:10:12 UTC], ["updated_at", 2017-03-10 20:10:12 UTC]]
10666
+  (0.5ms) COMMIT
10667
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10668
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10669
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10670
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10671
+ Migrating to ChangeTheModelUserAtTime1489176612 (20170310201015)
10672
+  (0.3ms) BEGIN
10673
+  (9.3ms) CREATE TABLE "users" ("id" serial primary key)
10674
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201015"]]
10675
+  (6.1ms) COMMIT
10676
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10677
+  (0.2ms) BEGIN
10678
+  (0.2ms) COMMIT
10679
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10680
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10681
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10682
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10683
+ Migrating to ChangeTheModelPostAtTime1489176618 (20170310201021)
10684
+  (0.5ms) BEGIN
10685
+  (23.8ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
10686
+  (1.3ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
10687
+  (20.9ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
10688
+  (0.4ms) ALTER TABLE "posts" ADD "content" text
10689
+  (0.4ms) ALTER TABLE "posts" ADD "title" character varying
10690
+ SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201021"]]
10691
+  (1.5ms) COMMIT
10692
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10693
+  (0.2ms) BEGIN
10694
+  (0.2ms) COMMIT
10695
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10696
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10697
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10698
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10699
+ Migrating to ChangeTheModelPostAtTime1489176624 (20170310201027)
10700
+  (0.3ms) BEGIN
10701
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201027"]]
10702
+  (6.5ms) COMMIT
10703
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10704
+  (0.2ms) BEGIN
10705
+  (0.2ms) COMMIT
10706
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10707
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10708
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10709
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10710
+ Migrating to ChangeTheModelPostAtTime1489176629 (20170310201032)
10711
+  (0.2ms) BEGIN
10712
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
10713
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201032"]]
10714
+  (8.6ms) COMMIT
10715
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10716
+  (0.2ms) BEGIN
10717
+  (0.2ms) COMMIT
10718
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10719
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10720
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10721
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10722
+ Migrating to ChangeTheModelPostAtTime1489176635 (20170310201038)
10723
+  (0.3ms) BEGIN
10724
+  (0.4ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
10725
+  (0.6ms) ALTER TABLE "posts" DROP "title"
10726
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201038"]]
10727
+  (0.5ms) COMMIT
10728
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10729
+  (0.2ms) BEGIN
10730
+  (0.3ms) COMMIT
10731
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10732
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10733
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10734
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10735
+ Migrating to ChangeTheModelPostAtTime1489176640 (20170310201043)
10736
+  (0.5ms) BEGIN
10737
+  (1.7ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
10738
+  (0.3ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
10739
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201043"]]
10740
+  (0.5ms) COMMIT
10741
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10742
+  (0.2ms) BEGIN
10743
+  (0.1ms) COMMIT
10744
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
10745
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10746
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10747
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10748
+ Migrating to ChangeTheModelPostAtTime1489176646 (20170310201049)
10749
+  (0.2ms) BEGIN
10750
+  (1.3ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
10751
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201049"]]
10752
+  (0.5ms) COMMIT
10753
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10754
+  (0.3ms) BEGIN
10755
+  (0.2ms) COMMIT
10756
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10757
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10758
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10759
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10760
+ Migrating to ChangeTheModelPostAtTime1489176652 (20170310201055)
10761
+  (0.2ms) BEGIN
10762
+  (0.6ms) ALTER TABLE "posts" ADD "user_id" integer
10763
+  (1.3ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
10764
+  (6.2ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
10765
+ FOREIGN KEY ("user_id")
10766
+ REFERENCES "users" ("id")
10767
+ 
10768
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201055"]]
10769
+  (0.5ms) COMMIT
10770
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10771
+  (0.2ms) BEGIN
10772
+  (0.2ms) COMMIT
10773
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10774
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10775
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10776
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10777
+ Migrating to ChangeTheModelPostAtTime1489176657 (20170310201100)
10778
+  (0.2ms) BEGIN
10779
+  (0.8ms) DROP INDEX "index_posts_on_views_by_users"
10780
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201100"]]
10781
+  (10.0ms) COMMIT
10782
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10783
+  (0.3ms) BEGIN
10784
+  (0.2ms) COMMIT
10785
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10786
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10787
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10788
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10789
+ Migrating to ChangeTheModelPostAtTime1489176663 (20170310201107)
10790
+  (0.3ms) BEGIN
10791
+  (1.5ms) DROP TABLE "posts" CASCADE
10792
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201107"]]
10793
+  (1.5ms) COMMIT
10794
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10795
+  (0.2ms) BEGIN
10796
+  (0.2ms) COMMIT
10797
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10798
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10799
+  (2.0ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10800
+  (1.2ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10801
+  (1.4ms) DROP TABLE if exists USERS cascade;
10802
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10803
+  (2.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10804
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10805
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10806
+ Migrating to ChangeTheModelPostAtTime1489176688 (20170310201131)
10807
+  (0.2ms) BEGIN
10808
+  (1.9ms) CREATE TABLE "posts" ("id" serial primary key)
10809
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201131"]]
10810
+  (0.5ms) COMMIT
10811
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10812
+  (0.2ms) BEGIN
10813
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:11:34 UTC], ["updated_at", 2017-03-10 20:11:34 UTC]]
10814
+  (0.5ms) COMMIT
10815
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10816
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10817
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10818
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10819
+ Migrating to ChangeTheModelUserAtTime1489176694 (20170310201137)
10820
+  (0.3ms) BEGIN
10821
+  (2.8ms) CREATE TABLE "users" ("id" serial primary key)
10822
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201137"]]
10823
+  (0.5ms) COMMIT
10824
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10825
+  (0.2ms) BEGIN
10826
+  (0.2ms) COMMIT
10827
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10828
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10829
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10830
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10831
+ Migrating to ChangeTheModelPostAtTime1489176699 (20170310201142)
10832
+  (0.2ms) BEGIN
10833
+  (5.2ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
10834
+  (0.9ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
10835
+  (3.5ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
10836
+  (0.2ms) ALTER TABLE "posts" ADD "content" text
10837
+  (0.4ms) ALTER TABLE "posts" ADD "title" character varying
10838
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201142"]]
10839
+  (1.1ms) COMMIT
10840
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10841
+  (0.2ms) BEGIN
10842
+  (0.1ms) COMMIT
10843
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10844
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10845
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10846
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10847
+ Migrating to ChangeTheModelPostAtTime1489176705 (20170310201148)
10848
+  (0.3ms) BEGIN
10849
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201148"]]
10850
+  (8.6ms) COMMIT
10851
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10852
+  (0.2ms) BEGIN
10853
+  (0.2ms) COMMIT
10854
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10855
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10856
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10857
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10858
+ Migrating to ChangeTheModelPostAtTime1489176711 (20170310201154)
10859
+  (0.3ms) BEGIN
10860
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
10861
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201154"]]
10862
+  (8.5ms) COMMIT
10863
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10864
+  (0.2ms) BEGIN
10865
+  (0.2ms) COMMIT
10866
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10867
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10868
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10869
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10870
+ Migrating to ChangeTheModelPostAtTime1489176716 (20170310201159)
10871
+  (0.2ms) BEGIN
10872
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
10873
+  (0.6ms) ALTER TABLE "posts" DROP "title"
10874
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201159"]]
10875
+  (8.6ms) COMMIT
10876
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10877
+  (0.2ms) BEGIN
10878
+  (0.3ms) COMMIT
10879
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10880
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10881
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
10882
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10883
+ Migrating to ChangeTheModelPostAtTime1489176722 (20170310201205)
10884
+  (0.3ms) BEGIN
10885
+  (9.5ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
10886
+  (0.8ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
10887
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201205"]]
10888
+  (0.6ms) COMMIT
10889
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10890
+  (0.2ms) BEGIN
10891
+  (0.1ms) COMMIT
10892
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10893
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10894
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10895
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10896
+ Migrating to ChangeTheModelPostAtTime1489176728 (20170310201211)
10897
+  (0.3ms) BEGIN
10898
+  (9.1ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
10899
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201211"]]
10900
+  (0.6ms) COMMIT
10901
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10902
+  (0.2ms) BEGIN
10903
+  (0.2ms) COMMIT
10904
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10905
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10906
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10907
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
10908
+ Migrating to ChangeTheModelPostAtTime1489176733 (20170310201216)
10909
+  (0.2ms) BEGIN
10910
+  (0.8ms) ALTER TABLE "posts" ADD "user_id" integer
10911
+  (1.3ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
10912
+  (6.4ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
10913
+ FOREIGN KEY ("user_id")
10914
+ REFERENCES "users" ("id")
10915
+ 
10916
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201216"]]
10917
+  (0.8ms) COMMIT
10918
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10919
+  (0.2ms) BEGIN
10920
+  (0.1ms) COMMIT
10921
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10922
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10923
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10924
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10925
+ Migrating to ChangeTheModelPostAtTime1489176739 (20170310201222)
10926
+  (0.3ms) BEGIN
10927
+  (0.8ms) DROP INDEX "index_posts_on_views_by_users"
10928
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201222"]]
10929
+  (1.2ms) COMMIT
10930
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10931
+  (0.2ms) BEGIN
10932
+  (0.2ms) COMMIT
10933
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10934
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10935
+  (0.7ms) SELECT pg_try_advisory_lock(268089350951355045);
10936
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10937
+ Migrating to ChangeTheModelPostAtTime1489176745 (20170310201228)
10938
+  (0.2ms) BEGIN
10939
+  (1.6ms) DROP TABLE "posts" CASCADE
10940
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201228"]]
10941
+  (6.3ms) COMMIT
10942
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10943
+  (0.2ms) BEGIN
10944
+  (0.1ms) COMMIT
10945
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
10946
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
10947
+  (6.5ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10948
+  (6.6ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10949
+  (7.6ms) DROP TABLE if exists USERS cascade;
10950
+  (27.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10951
+  (19.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10952
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10953
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10954
+ Migrating to CreatePosts (20170310201234)
10955
+  (0.2ms) BEGIN
10956
+  (13.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10957
+  (7.0ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
10958
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201234"]]
10959
+  (11.0ms) COMMIT
10960
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10961
+  (0.3ms) BEGIN
10962
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:12:37 UTC], ["updated_at", 2017-03-10 20:12:37 UTC]]
10963
+  (5.7ms) COMMIT
10964
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10965
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10966
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10967
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
10968
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10969
+  (0.2ms) BEGIN
10970
+  (0.2ms) COMMIT
10971
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10972
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10973
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
10974
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
10975
+ Migrating to CreateUsers (20170310201243)
10976
+  (0.3ms) BEGIN
10977
+  (106.1ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10978
+  (1.6ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
10979
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201243"]]
10980
+  (0.6ms) COMMIT
10981
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10982
+  (0.3ms) BEGIN
10983
+  (0.2ms) COMMIT
10984
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10985
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10986
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
10987
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
10988
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
10989
+  (0.2ms) BEGIN
10990
+  (0.2ms) COMMIT
10991
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
10992
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10993
+  (20.0ms) DROP TABLE if exists USERS cascade;
10994
+  (6.3ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
10995
+  (1.6ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
10996
+  (2.3ms) DROP TABLE if exists POSTS cascade;
10997
+  (5.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
10998
+  (20.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
10999
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11000
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11001
+ Migrating to CreatePosts (20170310201252)
11002
+  (0.2ms) BEGIN
11003
+  (16.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11004
+  (6.0ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11005
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201252"]]
11006
+  (12.3ms) COMMIT
11007
+ Migrating to CreateUsers (20170310201255)
11008
+  (5.8ms) BEGIN
11009
+  (8.5ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11010
+  (1.1ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
11011
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201255"]]
11012
+  (0.6ms) COMMIT
11013
+ Migrating to CreateUserPosts (20170310201258)
11014
+  (0.3ms) BEGIN
11015
+  (4.4ms) CREATE 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"
11016
+ FOREIGN KEY ("user_id")
11017
+ REFERENCES "users" ("id")
11018
+ , CONSTRAINT "fk_rails_38a7c4b06f"
11019
+ FOREIGN KEY ("post_id")
11020
+ REFERENCES "posts" ("id")
11021
+ )
11022
+  (1.0ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
11023
+  (1.1ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
11024
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201258"]]
11025
+  (0.5ms) COMMIT
11026
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11027
+  (0.3ms) BEGIN
11028
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:13:01 UTC], ["updated_at", 2017-03-10 20:13:01 UTC]]
11029
+  (0.5ms) COMMIT
11030
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11031
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11032
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11033
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
11034
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11035
+  (0.2ms) BEGIN
11036
+  (0.2ms) COMMIT
11037
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11038
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11039
+  (7.4ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11040
+  (7.4ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11041
+  (8.4ms) DROP TABLE if exists USERS cascade;
11042
+  (2.8ms) DROP TABLE if exists POSTS cascade;
11043
+  (2.8ms) DROP TABLE if exists USER_POSTS cascade;
11044
+  (21.3ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11045
+  (20.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11046
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11047
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11048
+ Migrating to ChangeTheModelPostAtTime1489176870 (20170310201433)
11049
+  (0.2ms) BEGIN
11050
+  (8.9ms) CREATE TABLE "posts" ("id" serial primary key)
11051
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201433"]]
11052
+  (6.6ms) COMMIT
11053
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11054
+  (0.2ms) BEGIN
11055
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:14:37 UTC], ["updated_at", 2017-03-10 20:14:37 UTC]]
11056
+  (0.5ms) COMMIT
11057
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11058
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11059
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11060
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11061
+ Migrating to ChangeTheModelUserAtTime1489176877 (20170310201440)
11062
+  (0.3ms) BEGIN
11063
+  (9.8ms) CREATE TABLE "users" ("id" serial primary key)
11064
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201440"]]
11065
+  (0.7ms) COMMIT
11066
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11067
+  (0.2ms) BEGIN
11068
+  (0.1ms) COMMIT
11069
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11070
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11071
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11072
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11073
+ Migrating to ChangeTheModelPostAtTime1489176882 (20170310201445)
11074
+  (0.3ms) BEGIN
11075
+  (20.0ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
11076
+  (1.2ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
11077
+  (4.0ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
11078
+  (0.3ms) ALTER TABLE "posts" ADD "content" text
11079
+  (0.2ms) ALTER TABLE "posts" ADD "title" character varying
11080
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201445"]]
11081
+  (1.5ms) COMMIT
11082
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11083
+  (0.3ms) BEGIN
11084
+  (0.2ms) COMMIT
11085
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11086
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11087
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11088
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11089
+ Migrating to ChangeTheModelPostAtTime1489176889 (20170310201452)
11090
+  (0.2ms) BEGIN
11091
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201452"]]
11092
+  (8.5ms) COMMIT
11093
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11094
+  (0.2ms) BEGIN
11095
+  (0.2ms) COMMIT
11096
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11097
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11098
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11099
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11100
+ Migrating to ChangeTheModelPostAtTime1489176895 (20170310201458)
11101
+  (0.3ms) BEGIN
11102
+  (0.4ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
11103
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201458"]]
11104
+  (0.6ms) COMMIT
11105
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11106
+  (0.2ms) BEGIN
11107
+  (0.1ms) COMMIT
11108
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11109
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11110
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11111
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11112
+ Migrating to ChangeTheModelPostAtTime1489176901 (20170310201504)
11113
+  (0.2ms) BEGIN
11114
+  (0.4ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
11115
+  (0.5ms) ALTER TABLE "posts" DROP "title"
11116
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201504"]]
11117
+  (7.8ms) COMMIT
11118
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11119
+  (0.2ms) BEGIN
11120
+  (0.2ms) COMMIT
11121
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11122
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11123
+  (7.7ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11124
+  (1.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11125
+  (2.4ms) DROP TABLE if exists POSTS cascade;
11126
+  (1.8ms) DROP TABLE if exists USERS cascade;
11127
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11128
+  (3.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11129
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11130
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11131
+ Migrating to ChangeTheModelPostAtTime1489176915 (20170310201518)
11132
+  (0.2ms) BEGIN
11133
+  (2.7ms) CREATE TABLE "posts" ("id" serial primary key)
11134
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201518"]]
11135
+  (0.6ms) COMMIT
11136
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11137
+  (0.2ms) BEGIN
11138
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:15:20 UTC], ["updated_at", 2017-03-10 20:15:20 UTC]]
11139
+  (0.4ms) COMMIT
11140
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11141
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11142
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11143
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11144
+ Migrating to ChangeTheModelUserAtTime1489176920 (20170310201523)
11145
+  (0.3ms) BEGIN
11146
+  (12.0ms) CREATE TABLE "users" ("id" serial primary key)
11147
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201523"]]
11148
+  (0.7ms) COMMIT
11149
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11150
+  (0.2ms) BEGIN
11151
+  (0.1ms) COMMIT
11152
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11153
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11154
+  (8.1ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11155
+  (7.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11156
+  (6.4ms) DROP TABLE if exists POSTS cascade;
11157
+  (1.8ms) DROP TABLE if exists USERS cascade;
11158
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11159
+  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11160
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11161
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
11162
+ Migrating to ChangeTheModelPostAtTime1489176938 (20170310201541)
11163
+  (0.2ms) BEGIN
11164
+  (2.2ms) CREATE TABLE "posts" ("id" serial primary key)
11165
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310201541"]]
11166
+  (0.5ms) COMMIT
11167
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11168
+  (0.2ms) BEGIN
11169
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:15:44 UTC], ["updated_at", 2017-03-10 20:15:44 UTC]]
11170
+  (0.4ms) COMMIT
11171
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11172
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11173
+  (7.5ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11174
+  (6.9ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11175
+  (6.8ms) DROP TABLE if exists POSTS cascade;
11176
+  (24.1ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11177
+  (20.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11178
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11179
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11180
+ Migrating to ChangeTheModelPostAtTime1489177776 (20170310202939)
11181
+  (0.2ms) BEGIN
11182
+  (8.5ms) CREATE TABLE "posts" ("id" serial primary key)
11183
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310202939"]]
11184
+  (6.2ms) COMMIT
11185
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11186
+  (0.2ms) BEGIN
11187
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:29:41 UTC], ["updated_at", 2017-03-10 20:29:41 UTC]]
11188
+  (5.0ms) COMMIT
11189
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11190
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11191
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11192
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11193
+ Migrating to ChangeTheModelUserAtTime1489177781 (20170310202944)
11194
+  (0.2ms) BEGIN
11195
+  (10.6ms) CREATE TABLE "users" ("id" serial primary key)
11196
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310202944"]]
11197
+  (0.8ms) COMMIT
11198
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11199
+  (0.1ms) BEGIN
11200
+  (0.2ms) COMMIT
11201
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11202
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11203
+  (0.8ms) SELECT pg_try_advisory_lock(268089350951355045);
11204
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11205
+ Migrating to ChangeTheModelPostAtTime1489177787 (20170310202950)
11206
+  (0.2ms) BEGIN
11207
+  (16.8ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
11208
+  (1.2ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
11209
+  (5.6ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
11210
+  (0.2ms) ALTER TABLE "posts" ADD "content" text
11211
+  (0.3ms) ALTER TABLE "posts" ADD "title" character varying
11212
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310202950"]]
11213
+  (1.9ms) COMMIT
11214
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11215
+  (0.3ms) BEGIN
11216
+  (0.2ms) COMMIT
11217
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11218
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11219
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11220
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11221
+ Migrating to ChangeTheModelPostAtTime1489177794 (20170310202958)
11222
+  (0.3ms) BEGIN
11223
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310202958"]]
11224
+  (0.6ms) COMMIT
11225
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11226
+  (0.3ms) BEGIN
11227
+  (0.2ms) COMMIT
11228
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11229
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11230
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11231
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11232
+ Migrating to ChangeTheModelPostAtTime1489177801 (20170310203003)
11233
+  (0.3ms) BEGIN
11234
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
11235
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203003"]]
11236
+  (8.8ms) COMMIT
11237
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11238
+  (0.2ms) BEGIN
11239
+  (0.2ms) COMMIT
11240
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11241
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11242
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11243
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11244
+ Migrating to ChangeTheModelPostAtTime1489177806 (20170310203009)
11245
+  (0.2ms) BEGIN
11246
+  (0.4ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
11247
+  (0.7ms) ALTER TABLE "posts" DROP "title"
11248
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203009"]]
11249
+  (8.7ms) COMMIT
11250
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11251
+  (0.3ms) BEGIN
11252
+  (0.2ms) COMMIT
11253
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11254
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11255
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11256
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
11257
+ Migrating to ChangeTheModelPostAtTime1489177812 (20170310203015)
11258
+  (0.3ms) BEGIN
11259
+  (1.6ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
11260
+  (0.5ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
11261
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203015"]]
11262
+  (0.5ms) COMMIT
11263
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11264
+  (0.2ms) BEGIN
11265
+  (0.2ms) COMMIT
11266
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11267
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11268
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11269
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
11270
+ Migrating to ChangeTheModelPostAtTime1489177818 (20170310203021)
11271
+  (0.3ms) BEGIN
11272
+  (9.4ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
11273
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203021"]]
11274
+  (0.5ms) COMMIT
11275
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11276
+  (0.2ms) BEGIN
11277
+  (0.2ms) COMMIT
11278
+  (0.5ms) SELECT pg_advisory_unlock(268089350951355045)
11279
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11280
+  (0.5ms) SELECT pg_try_advisory_lock(268089350951355045);
11281
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11282
+ Migrating to ChangeTheModelPostAtTime1489177824 (20170310203026)
11283
+  (0.2ms) BEGIN
11284
+  (0.7ms) ALTER TABLE "posts" ADD "user_id" integer
11285
+  (1.3ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
11286
+  (3.5ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
11287
+ FOREIGN KEY ("user_id")
11288
+ REFERENCES "users" ("id")
11289
+ 
11290
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203026"]]
11291
+  (0.5ms) COMMIT
11292
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11293
+  (0.2ms) BEGIN
11294
+  (0.1ms) COMMIT
11295
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11296
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11297
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11298
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11299
+ Migrating to ChangeTheModelPostAtTime1489177829 (20170310203032)
11300
+  (0.5ms) BEGIN
11301
+  (0.6ms) DROP INDEX "index_posts_on_views_by_users"
11302
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203032"]]
11303
+  (4.0ms) COMMIT
11304
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11305
+  (0.2ms) BEGIN
11306
+  (0.3ms) COMMIT
11307
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11308
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11309
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11310
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11311
+ Migrating to ChangeTheModelPostAtTime1489177835 (20170310203039)
11312
+  (0.3ms) BEGIN
11313
+  (5.2ms) DROP TABLE "posts" CASCADE
11314
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203039"]]
11315
+  (10.5ms) COMMIT
11316
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11317
+  (0.2ms) BEGIN
11318
+  (0.2ms) COMMIT
11319
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11320
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11321
+  (9.8ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11322
+  (7.5ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11323
+  (8.6ms) DROP TABLE if exists USERS cascade;
11324
+  (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11325
+  (3.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11326
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11327
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11328
+ Migrating to CreatePosts (20170310203047)
11329
+  (0.4ms) BEGIN
11330
+  (27.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11331
+  (14.2ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11332
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203047"]]
11333
+  (0.7ms) COMMIT
11334
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11335
+  (0.5ms) BEGIN
11336
+ SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:30:51 UTC], ["updated_at", 2017-03-10 20:30:51 UTC]]
11337
+  (0.5ms) COMMIT
11338
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11339
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11340
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11341
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
11342
+ Migrating to CreateUsers (20170310203055)
11343
+  (0.3ms) BEGIN
11344
+  (13.6ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11345
+  (1.6ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
11346
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203055"]]
11347
+  (0.6ms) COMMIT
11348
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11349
+  (0.3ms) BEGIN
11350
+  (0.2ms) COMMIT
11351
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11352
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11353
+  (7.9ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11354
+  (13.1ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11355
+  (2.1ms) DROP TABLE if exists POSTS cascade;
11356
+  (2.1ms) DROP TABLE if exists USERS cascade;
11357
+  (12.3ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11358
+  (3.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11359
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11360
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11361
+ Migrating to CreatePosts (20170310203101)
11362
+  (0.2ms) BEGIN
11363
+  (3.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11364
+  (1.1ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11365
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203101"]]
11366
+  (0.8ms) COMMIT
11367
+ Migrating to CreateUsers (20170310203104)
11368
+  (0.4ms) BEGIN
11369
+  (3.8ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11370
+  (1.2ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
11371
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203104"]]
11372
+  (0.6ms) COMMIT
11373
+ Migrating to CreateUserPosts (20170310203107)
11374
+  (0.4ms) BEGIN
11375
+  (4.3ms) CREATE 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"
11376
+ FOREIGN KEY ("user_id")
11377
+ REFERENCES "users" ("id")
11378
+ , CONSTRAINT "fk_rails_38a7c4b06f"
11379
+ FOREIGN KEY ("post_id")
11380
+ REFERENCES "posts" ("id")
11381
+ )
11382
+  (1.3ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
11383
+  (1.2ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
11384
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310203107"]]
11385
+  (0.5ms) COMMIT
11386
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11387
+  (0.4ms) BEGIN
11388
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:31:10 UTC], ["updated_at", 2017-03-10 20:31:10 UTC]]
11389
+  (0.5ms) COMMIT
11390
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11391
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11392
+  (7.9ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11393
+  (7.0ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11394
+  (7.4ms) DROP TABLE if exists USERS cascade;
11395
+  (2.5ms) DROP TABLE if exists POSTS cascade;
11396
+  (1.9ms) DROP TABLE if exists USER_POSTS cascade;
11397
+  (4.7ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11398
+  (7.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11399
+  (9.5ms) DROP TABLE if exists POSTS cascade;
11400
+  (8.6ms) DROP TABLE if exists USERS cascade;
11401
+  (26.7ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11402
+  (21.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11403
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11404
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11405
+ Migrating to ChangeTheModelPostAtTime1489178791 (20170310204634)
11406
+  (0.2ms) BEGIN
11407
+  (7.7ms) CREATE TABLE "posts" ("id" serial primary key)
11408
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204634"]]
11409
+  (8.7ms) COMMIT
11410
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11411
+  (0.2ms) BEGIN
11412
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:46:37 UTC], ["updated_at", 2017-03-10 20:46:37 UTC]]
11413
+  (1.1ms) COMMIT
11414
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11415
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11416
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11417
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11418
+ Migrating to ChangeTheModelUserAtTime1489178797 (20170310204641)
11419
+  (0.3ms) BEGIN
11420
+  (10.1ms) CREATE TABLE "users" ("id" serial primary key)
11421
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204641"]]
11422
+  (6.5ms) COMMIT
11423
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11424
+  (0.2ms) BEGIN
11425
+  (0.2ms) COMMIT
11426
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11427
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11428
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11429
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11430
+ Migrating to ChangeTheModelPostAtTime1489178804 (20170310204648)
11431
+  (0.2ms) BEGIN
11432
+  (6.9ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
11433
+  (19.8ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
11434
+  (4.9ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
11435
+  (0.2ms) ALTER TABLE "posts" ADD "content" text
11436
+  (0.2ms) ALTER TABLE "posts" ADD "title" character varying
11437
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204648"]]
11438
+  (1.3ms) COMMIT
11439
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11440
+  (0.2ms) BEGIN
11441
+  (0.1ms) COMMIT
11442
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11443
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11444
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11445
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
11446
+ Migrating to ChangeTheModelPostAtTime1489178811 (20170310204655)
11447
+  (0.3ms) BEGIN
11448
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204655"]]
11449
+  (7.8ms) COMMIT
11450
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11451
+  (0.2ms) BEGIN
11452
+  (0.2ms) COMMIT
11453
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11454
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11455
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11456
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11457
+ Migrating to ChangeTheModelPostAtTime1489178818 (20170310204702)
11458
+  (0.2ms) BEGIN
11459
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
11460
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204702"]]
11461
+  (7.9ms) COMMIT
11462
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11463
+  (0.3ms) BEGIN
11464
+  (0.3ms) COMMIT
11465
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11466
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11467
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11468
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11469
+ Migrating to ChangeTheModelPostAtTime1489178825 (20170310204708)
11470
+  (0.3ms) BEGIN
11471
+  (0.4ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
11472
+  (0.7ms) ALTER TABLE "posts" DROP "title"
11473
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204708"]]
11474
+  (8.4ms) COMMIT
11475
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11476
+  (0.2ms) BEGIN
11477
+  (0.2ms) COMMIT
11478
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11479
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11480
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11481
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11482
+ Migrating to ChangeTheModelPostAtTime1489178831 (20170310204714)
11483
+  (0.2ms) BEGIN
11484
+  (10.1ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
11485
+  (0.5ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
11486
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204714"]]
11487
+  (0.5ms) COMMIT
11488
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11489
+  (0.3ms) BEGIN
11490
+  (0.2ms) COMMIT
11491
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11492
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11493
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11494
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11495
+ Migrating to ChangeTheModelPostAtTime1489178837 (20170310204720)
11496
+  (0.3ms) BEGIN
11497
+  (9.9ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
11498
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204720"]]
11499
+  (0.7ms) COMMIT
11500
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11501
+  (0.2ms) BEGIN
11502
+  (0.2ms) COMMIT
11503
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11504
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11505
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11506
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11507
+ Migrating to ChangeTheModelPostAtTime1489178843 (20170310204727)
11508
+  (0.2ms) BEGIN
11509
+  (0.8ms) ALTER TABLE "posts" ADD "user_id" integer
11510
+  (1.5ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
11511
+  (5.1ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
11512
+ FOREIGN KEY ("user_id")
11513
+ REFERENCES "users" ("id")
11514
+ 
11515
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204727"]]
11516
+  (0.5ms) COMMIT
11517
+ Migrating to ChangeTheModelPostAtTime1489178847 (20170310204730)
11518
+  (0.3ms) BEGIN
11519
+  (0.5ms) DROP INDEX "index_posts_on_views_by_users"
11520
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204730"]]
11521
+  (1.4ms) COMMIT
11522
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11523
+  (0.2ms) BEGIN
11524
+  (0.2ms) COMMIT
11525
+  (0.9ms) SELECT pg_advisory_unlock(268089350951355045)
11526
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11527
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11528
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11529
+ Migrating to ChangeTheModelPostAtTime1489178853 (20170310204736)
11530
+  (0.2ms) BEGIN
11531
+  (11.7ms) DROP TABLE "posts" CASCADE
11532
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204736"]]
11533
+  (3.1ms) COMMIT
11534
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11535
+  (0.2ms) BEGIN
11536
+  (0.2ms) COMMIT
11537
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11538
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11539
+  (7.8ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11540
+  (7.4ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11541
+  (8.5ms) DROP TABLE if exists USERS cascade;
11542
+  (15.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11543
+  (3.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11544
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11545
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11546
+ Migrating to CreatePosts (20170310204742)
11547
+  (0.4ms) BEGIN
11548
+  (4.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11549
+  (1.1ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11550
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204742"]]
11551
+  (0.6ms) COMMIT
11552
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11553
+  (0.3ms) BEGIN
11554
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:47:45 UTC], ["updated_at", 2017-03-10 20:47:45 UTC]]
11555
+  (0.4ms) COMMIT
11556
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11557
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11558
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11559
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11560
+ Migrating to CreateUsers (20170310204748)
11561
+  (0.3ms) BEGIN
11562
+  (13.4ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11563
+  (1.5ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
11564
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204748"]]
11565
+  (0.7ms) COMMIT
11566
+ ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11567
+  (0.2ms) BEGIN
11568
+  (0.3ms) COMMIT
11569
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11570
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11571
+  (8.3ms) DROP TABLE if exists POSTS cascade;
11572
+  (7.6ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11573
+  (7.3ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11574
+  (2.0ms) DROP TABLE if exists USERS cascade;
11575
+  (12.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11576
+  (2.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11577
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11578
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11579
+ Migrating to CreatePosts (20170310204754)
11580
+  (0.2ms) BEGIN
11581
+  (4.1ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11582
+  (1.0ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11583
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204754"]]
11584
+  (0.5ms) COMMIT
11585
+ Migrating to CreateUsers (20170310204758)
11586
+  (0.3ms) BEGIN
11587
+  (3.6ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11588
+  (1.0ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
11589
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204758"]]
11590
+  (0.5ms) COMMIT
11591
+ Migrating to CreateUserPosts (20170310204801)
11592
+  (0.5ms) BEGIN
11593
+  (3.5ms) CREATE 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"
11594
+ FOREIGN KEY ("user_id")
11595
+ REFERENCES "users" ("id")
11596
+ , CONSTRAINT "fk_rails_38a7c4b06f"
11597
+ FOREIGN KEY ("post_id")
11598
+ REFERENCES "posts" ("id")
11599
+ )
11600
+  (1.2ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
11601
+  (1.3ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
11602
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204801"]]
11603
+  (0.5ms) COMMIT
11604
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11605
+  (0.2ms) BEGIN
11606
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:48:05 UTC], ["updated_at", 2017-03-10 20:48:05 UTC]]
11607
+  (0.5ms) COMMIT
11608
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11609
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11610
+  (7.3ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11611
+  (6.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11612
+  (8.2ms) DROP TABLE if exists USERS cascade;
11613
+  (3.4ms) DROP TABLE if exists POSTS cascade;
11614
+  (1.9ms) DROP TABLE if exists USER_POSTS cascade;
11615
+  (20.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11616
+  (19.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11617
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11618
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11619
+ Migrating to ChangeTheModelPostAtTime1489178942 (20170310204905)
11620
+  (0.3ms) BEGIN
11621
+  (8.3ms) CREATE TABLE "posts" ("id" serial primary key)
11622
+ SQL (6.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204905"]]
11623
+  (6.3ms) COMMIT
11624
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11625
+  (0.2ms) BEGIN
11626
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:49:08 UTC], ["updated_at", 2017-03-10 20:49:08 UTC]]
11627
+  (7.0ms) COMMIT
11628
+  (0.5ms) SELECT pg_advisory_unlock(268089350951355045)
11629
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11630
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11631
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11632
+ Migrating to ChangeTheModelUserAtTime1489178948 (20170310204912)
11633
+  (0.4ms) BEGIN
11634
+  (9.8ms) CREATE TABLE "users" ("id" serial primary key)
11635
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204912"]]
11636
+  (6.9ms) COMMIT
11637
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11638
+  (0.2ms) BEGIN
11639
+  (0.2ms) COMMIT
11640
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11641
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11642
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11643
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11644
+ Migrating to ChangeTheModelPostAtTime1489178955 (20170310204918)
11645
+  (0.2ms) BEGIN
11646
+  (15.4ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
11647
+  (1.0ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
11648
+  (6.3ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
11649
+  (0.3ms) ALTER TABLE "posts" ADD "content" text
11650
+  (0.3ms) ALTER TABLE "posts" ADD "title" character varying
11651
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204918"]]
11652
+  (1.3ms) COMMIT
11653
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11654
+  (0.2ms) BEGIN
11655
+  (0.2ms) COMMIT
11656
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11657
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11658
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11659
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11660
+ Migrating to ChangeTheModelPostAtTime1489178961 (20170310204924)
11661
+  (0.3ms) BEGIN
11662
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204924"]]
11663
+  (7.7ms) COMMIT
11664
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11665
+  (0.2ms) BEGIN
11666
+  (0.2ms) COMMIT
11667
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11668
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11669
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11670
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11671
+ Migrating to ChangeTheModelPostAtTime1489178967 (20170310204930)
11672
+  (0.4ms) BEGIN
11673
+  (0.6ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
11674
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204930"]]
11675
+  (0.6ms) COMMIT
11676
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11677
+  (0.2ms) BEGIN
11678
+  (0.2ms) COMMIT
11679
+  (0.5ms) SELECT pg_advisory_unlock(268089350951355045)
11680
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11681
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11682
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
11683
+ Migrating to ChangeTheModelPostAtTime1489178973 (20170310204937)
11684
+  (0.2ms) BEGIN
11685
+  (0.6ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
11686
+  (0.7ms) ALTER TABLE "posts" DROP "title"
11687
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204937"]]
11688
+  (0.5ms) COMMIT
11689
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11690
+  (0.2ms) BEGIN
11691
+  (0.2ms) COMMIT
11692
+  (0.6ms) SELECT pg_advisory_unlock(268089350951355045)
11693
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11694
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11695
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
11696
+ Migrating to ChangeTheModelPostAtTime1489178979 (20170310204943)
11697
+  (0.3ms) BEGIN
11698
+  (9.5ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
11699
+  (0.5ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
11700
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204943"]]
11701
+  (0.6ms) COMMIT
11702
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11703
+  (0.3ms) BEGIN
11704
+  (0.2ms) COMMIT
11705
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11706
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11707
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11708
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
11709
+ Migrating to ChangeTheModelPostAtTime1489178985 (20170310204949)
11710
+  (0.2ms) BEGIN
11711
+  (2.6ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
11712
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204949"]]
11713
+  (0.5ms) COMMIT
11714
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11715
+  (0.3ms) BEGIN
11716
+  (0.4ms) COMMIT
11717
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11718
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11719
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11720
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
11721
+ Migrating to ChangeTheModelPostAtTime1489178994 (20170310204958)
11722
+  (0.4ms) BEGIN
11723
+  (0.8ms) ALTER TABLE "posts" ADD "user_id" integer
11724
+  (9.3ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
11725
+  (5.4ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
11726
+ FOREIGN KEY ("user_id")
11727
+ REFERENCES "users" ("id")
11728
+ 
11729
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310204958"]]
11730
+  (0.6ms) COMMIT
11731
+ Migrating to ChangeTheModelPostAtTime1489178998 (20170310205002)
11732
+  (0.2ms) BEGIN
11733
+  (0.6ms) DROP INDEX "index_posts_on_views_by_users"
11734
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205002"]]
11735
+  (1.3ms) COMMIT
11736
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11737
+  (0.5ms) BEGIN
11738
+  (0.3ms) COMMIT
11739
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11740
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11741
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11742
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
11743
+ Migrating to ChangeTheModelPostAtTime1489179005 (20170310205008)
11744
+  (0.5ms) BEGIN
11745
+  (2.8ms) DROP TABLE "posts" CASCADE
11746
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205008"]]
11747
+  (9.2ms) COMMIT
11748
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11749
+  (0.2ms) BEGIN
11750
+  (0.2ms) COMMIT
11751
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11752
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11753
+  (7.4ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11754
+  (1.9ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11755
+  (2.2ms) DROP TABLE if exists USERS cascade;
11756
+  (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11757
+  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11758
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11759
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11760
+ Migrating to ChangeTheModelPostAtTime1489179075 (20170310205118)
11761
+  (0.2ms) BEGIN
11762
+  (2.0ms) CREATE TABLE "posts" ("id" serial primary key)
11763
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205118"]]
11764
+  (0.4ms) COMMIT
11765
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11766
+  (0.4ms) BEGIN
11767
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:51:21 UTC], ["updated_at", 2017-03-10 20:51:21 UTC]]
11768
+  (0.4ms) COMMIT
11769
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11770
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11771
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11772
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11773
+ Migrating to ChangeTheModelUserAtTime1489179081 (20170310205124)
11774
+  (0.3ms) BEGIN
11775
+  (3.2ms) CREATE TABLE "users" ("id" serial primary key)
11776
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205124"]]
11777
+  (0.6ms) COMMIT
11778
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11779
+  (0.2ms) BEGIN
11780
+  (0.2ms) COMMIT
11781
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11782
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11783
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11784
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11785
+ Migrating to ChangeTheModelPostAtTime1489179087 (20170310205131)
11786
+  (0.3ms) BEGIN
11787
+  (5.4ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
11788
+  (1.0ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
11789
+  (3.7ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
11790
+  (0.3ms) ALTER TABLE "posts" ADD "content" text
11791
+  (0.2ms) ALTER TABLE "posts" ADD "title" character varying
11792
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205131"]]
11793
+  (1.4ms) COMMIT
11794
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11795
+  (0.2ms) BEGIN
11796
+  (0.2ms) COMMIT
11797
+  (0.7ms) SELECT pg_advisory_unlock(268089350951355045)
11798
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11799
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11800
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11801
+ Migrating to ChangeTheModelPostAtTime1489179094 (20170310205137)
11802
+  (0.3ms) BEGIN
11803
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205137"]]
11804
+  (8.8ms) COMMIT
11805
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11806
+  (0.2ms) BEGIN
11807
+  (0.2ms) COMMIT
11808
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11809
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11810
+  (0.5ms) SELECT pg_try_advisory_lock(268089350951355045);
11811
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
11812
+ Migrating to ChangeTheModelPostAtTime1489179101 (20170310205144)
11813
+  (0.3ms) BEGIN
11814
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
11815
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205144"]]
11816
+  (8.8ms) COMMIT
11817
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11818
+  (0.3ms) BEGIN
11819
+  (0.2ms) COMMIT
11820
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11821
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11822
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11823
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11824
+ Migrating to ChangeTheModelPostAtTime1489179107 (20170310205151)
11825
+  (0.3ms) BEGIN
11826
+  (0.7ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
11827
+  (0.8ms) ALTER TABLE "posts" DROP "title"
11828
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205151"]]
11829
+  (8.6ms) COMMIT
11830
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11831
+  (0.2ms) BEGIN
11832
+  (0.2ms) COMMIT
11833
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11834
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11835
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11836
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
11837
+ Migrating to ChangeTheModelPostAtTime1489179114 (20170310205157)
11838
+  (0.2ms) BEGIN
11839
+  (9.8ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
11840
+  (0.7ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
11841
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205157"]]
11842
+  (0.6ms) COMMIT
11843
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11844
+  (0.3ms) BEGIN
11845
+  (0.2ms) COMMIT
11846
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11847
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11848
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11849
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11850
+ Migrating to ChangeTheModelPostAtTime1489179120 (20170310205204)
11851
+  (0.2ms) BEGIN
11852
+  (1.8ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
11853
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205204"]]
11854
+  (0.4ms) COMMIT
11855
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11856
+  (0.2ms) BEGIN
11857
+  (0.1ms) COMMIT
11858
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
11859
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11860
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11861
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11862
+ Migrating to ChangeTheModelPostAtTime1489179127 (20170310205212)
11863
+  (0.3ms) BEGIN
11864
+  (0.8ms) ALTER TABLE "posts" ADD "user_id" integer
11865
+  (2.4ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
11866
+  (5.5ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
11867
+ FOREIGN KEY ("user_id")
11868
+ REFERENCES "users" ("id")
11869
+ 
11870
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205212"]]
11871
+  (0.5ms) COMMIT
11872
+ Migrating to ChangeTheModelPostAtTime1489179132 (20170310205216)
11873
+  (0.2ms) BEGIN
11874
+  (0.6ms) DROP INDEX "index_posts_on_views_by_users"
11875
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205216"]]
11876
+  (1.3ms) COMMIT
11877
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11878
+  (0.2ms) BEGIN
11879
+  (0.2ms) COMMIT
11880
+  (1.9ms) SELECT pg_advisory_unlock(268089350951355045)
11881
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11882
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11883
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11884
+ Migrating to ChangeTheModelPostAtTime1489179139 (20170310205223)
11885
+  (0.3ms) BEGIN
11886
+  (2.7ms) DROP TABLE "posts" CASCADE
11887
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205223"]]
11888
+  (10.0ms) COMMIT
11889
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11890
+  (0.2ms) BEGIN
11891
+  (0.2ms) COMMIT
11892
+  (0.8ms) SELECT pg_advisory_unlock(268089350951355045)
11893
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11894
+  (7.8ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11895
+  (7.9ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11896
+  (8.0ms) DROP TABLE if exists USERS cascade;
11897
+  (9.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11898
+  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11899
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
11900
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
11901
+ Migrating to CreatePosts (20170310205230)
11902
+  (0.3ms) BEGIN
11903
+  (3.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11904
+  (1.0ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11905
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205230"]]
11906
+  (0.5ms) COMMIT
11907
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11908
+  (0.2ms) BEGIN
11909
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:52:33 UTC], ["updated_at", 2017-03-10 20:52:33 UTC]]
11910
+  (0.5ms) COMMIT
11911
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11912
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11913
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11914
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11915
+ Migrating to CreateUsers (20170310205236)
11916
+  (0.3ms) BEGIN
11917
+  (12.9ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11918
+  (1.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
11919
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205236"]]
11920
+  (0.6ms) COMMIT
11921
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11922
+  (0.3ms) BEGIN
11923
+  (0.2ms) COMMIT
11924
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11925
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11926
+  (8.3ms) DROP TABLE if exists POSTS cascade;
11927
+  (8.7ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11928
+  (29.1ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11929
+  (2.8ms) DROP TABLE if exists USERS cascade;
11930
+  (13.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11931
+  (3.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11932
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11933
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11934
+ Migrating to CreatePosts (20170310205242)
11935
+  (0.3ms) BEGIN
11936
+  (3.9ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11937
+  (1.1ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11938
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205242"]]
11939
+  (0.5ms) COMMIT
11940
+ Migrating to CreateUsers (20170310205246)
11941
+  (0.3ms) BEGIN
11942
+  (3.7ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11943
+  (1.1ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
11944
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205246"]]
11945
+  (0.5ms) COMMIT
11946
+ Migrating to CreateUserPosts (20170310205249)
11947
+  (0.4ms) BEGIN
11948
+  (3.8ms) CREATE 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"
11949
+ FOREIGN KEY ("user_id")
11950
+ REFERENCES "users" ("id")
11951
+ , CONSTRAINT "fk_rails_38a7c4b06f"
11952
+ FOREIGN KEY ("post_id")
11953
+ REFERENCES "posts" ("id")
11954
+ )
11955
+  (1.1ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
11956
+  (0.9ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
11957
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205249"]]
11958
+  (0.5ms) COMMIT
11959
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11960
+  (0.3ms) BEGIN
11961
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:52:52 UTC], ["updated_at", 2017-03-10 20:52:52 UTC]]
11962
+  (0.4ms) COMMIT
11963
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11964
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11965
+  (3.8ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11966
+  (1.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
11967
+  (3.0ms) DROP TABLE if exists USERS cascade;
11968
+  (2.9ms) DROP TABLE if exists POSTS cascade;
11969
+  (1.8ms) DROP TABLE if exists USER_POSTS cascade;
11970
+  (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
11971
+  (21.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11972
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
11973
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11974
+ Migrating to CreatePosts (20170310205313)
11975
+  (0.2ms) BEGIN
11976
+  (21.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11977
+  (2.9ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
11978
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205313"]]
11979
+  (6.6ms) COMMIT
11980
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
11981
+  (0.3ms) BEGIN
11982
+ SQL (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:53:17 UTC], ["updated_at", 2017-03-10 20:53:17 UTC]]
11983
+  (0.4ms) COMMIT
11984
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
11985
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11986
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
11987
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11988
+ Migrating to ChangeTheModelPostAtTime1489179197 (20170310205320)
11989
+  (0.4ms) BEGIN
11990
+  (0.8ms) ALTER TABLE "posts" ADD "user_id" integer
11991
+  (9.7ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
11992
+  (3.2ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
11993
+ FOREIGN KEY ("user_id")
11994
+ REFERENCES "users" ("id")
11995
+ 
11996
+  (0.2ms) ROLLBACK
11997
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
11998
+  (2.9ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
11999
+  (1.4ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12000
+  (1.9ms) DROP TABLE if exists POSTS cascade;
12001
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12002
+  (2.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12003
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12004
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12005
+ Migrating to CreatePosts (20170310205525)
12006
+  (0.2ms) BEGIN
12007
+  (3.1ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12008
+  (0.9ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12009
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205525"]]
12010
+  (0.6ms) COMMIT
12011
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12012
+  (0.2ms) BEGIN
12013
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:55:28 UTC], ["updated_at", 2017-03-10 20:55:28 UTC]]
12014
+  (0.5ms) COMMIT
12015
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
12016
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12017
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12018
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12019
+ Migrating to CreateUsers (20170310205531)
12020
+  (0.2ms) BEGIN
12021
+  (14.2ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12022
+  (1.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12023
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205531"]]
12024
+  (0.6ms) COMMIT
12025
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12026
+  (0.3ms) BEGIN
12027
+  (0.2ms) COMMIT
12028
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12029
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12030
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12031
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12032
+ Migrating to ChangeTheModelPostAtTime1489179334 (20170310205537)
12033
+  (0.2ms) BEGIN
12034
+  (0.6ms) ALTER TABLE "posts" ADD "user_id" integer
12035
+  (9.5ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
12036
+  (4.5ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
12037
+ FOREIGN KEY ("user_id")
12038
+ REFERENCES "users" ("id")
12039
+ 
12040
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205537"]]
12041
+  (0.6ms) COMMIT
12042
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12043
+  (0.2ms) BEGIN
12044
+  (0.2ms) COMMIT
12045
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
12046
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12047
+  (2.2ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12048
+  (7.4ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12049
+  (8.9ms) DROP TABLE if exists POSTS cascade;
12050
+  (9.5ms) DROP TABLE if exists USERS cascade;
12051
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12052
+  (19.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12053
+  (1.1ms) SELECT pg_try_advisory_lock(268089350951355045);
12054
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
12055
+ Migrating to CreatePosts (20170310205827)
12056
+  (0.2ms) BEGIN
12057
+  (19.0ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12058
+  (5.7ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12059
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205827"]]
12060
+  (7.2ms) COMMIT
12061
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12062
+  (0.3ms) BEGIN
12063
+ SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 20:58:30 UTC], ["updated_at", 2017-03-10 20:58:30 UTC]]
12064
+  (0.4ms) COMMIT
12065
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
12066
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12067
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12068
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12069
+ Migrating to CreateUsers (20170310205834)
12070
+  (0.3ms) BEGIN
12071
+  (12.0ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12072
+  (1.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12073
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205834"]]
12074
+  (0.5ms) COMMIT
12075
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12076
+  (0.2ms) BEGIN
12077
+  (0.2ms) COMMIT
12078
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12079
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12080
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12081
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12082
+ Migrating to ChangeTheModelPostAtTime1489179517 (20170310205841)
12083
+  (0.3ms) BEGIN
12084
+  (1.0ms) ALTER TABLE "posts" ADD "user_id" integer
12085
+  (9.8ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
12086
+  (2.5ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
12087
+ FOREIGN KEY ("user_id")
12088
+ REFERENCES "users" ("id")
12089
+ 
12090
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310205841"]]
12091
+  (0.6ms) COMMIT
12092
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12093
+  (0.2ms) BEGIN
12094
+  (0.2ms) COMMIT
12095
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12096
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12097
+  (2.2ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12098
+  (1.2ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12099
+  (2.4ms) DROP TABLE if exists POSTS cascade;
12100
+  (2.6ms) DROP TABLE if exists USERS cascade;
12101
+  (10.8ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12102
+  (19.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12103
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12104
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12105
+ Migrating to CreatePosts (20170310210022)
12106
+  (0.2ms) BEGIN
12107
+  (3.8ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12108
+  (0.9ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12109
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210022"]]
12110
+  (0.7ms) COMMIT
12111
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12112
+  (0.2ms) BEGIN
12113
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:00:25 UTC], ["updated_at", 2017-03-10 21:00:25 UTC]]
12114
+  (0.5ms) COMMIT
12115
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12116
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12117
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12118
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12119
+ Migrating to CreateUsers (20170310210029)
12120
+  (0.3ms) BEGIN
12121
+  (11.6ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12122
+  (1.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12123
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210029"]]
12124
+  (0.6ms) COMMIT
12125
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12126
+  (0.2ms) BEGIN
12127
+  (0.2ms) COMMIT
12128
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12129
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12130
+  (0.6ms) SELECT pg_try_advisory_lock(268089350951355045);
12131
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12132
+ Migrating to ChangeTheModelPostAtTime1489179632 (20170310210035)
12133
+  (0.3ms) BEGIN
12134
+  (0.6ms) ALTER TABLE "posts" ADD "user_id" integer
12135
+  (8.9ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
12136
+  (2.6ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
12137
+ FOREIGN KEY ("user_id")
12138
+ REFERENCES "users" ("id")
12139
+ 
12140
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210035"]]
12141
+  (0.6ms) COMMIT
12142
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12143
+  (0.2ms) BEGIN
12144
+  (0.2ms) COMMIT
12145
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12146
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12147
+  (3.4ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12148
+  (1.3ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12149
+  (4.3ms) DROP TABLE if exists POSTS cascade;
12150
+  (2.1ms) DROP TABLE if exists USERS cascade;
12151
+  (11.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12152
+  (3.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12153
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12154
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12155
+ Migrating to ChangeTheModelPostAtTime1489179653 (20170310210056)
12156
+  (0.3ms) BEGIN
12157
+  (2.0ms) CREATE TABLE "posts" ("id" serial primary key)
12158
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210056"]]
12159
+  (0.5ms) COMMIT
12160
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12161
+  (0.2ms) BEGIN
12162
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:00:59 UTC], ["updated_at", 2017-03-10 21:00:59 UTC]]
12163
+  (1.2ms) COMMIT
12164
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12165
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12166
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12167
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12168
+ Migrating to ChangeTheModelUserAtTime1489179659 (20170310210102)
12169
+  (0.3ms) BEGIN
12170
+  (12.3ms) CREATE TABLE "users" ("id" serial primary key)
12171
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210102"]]
12172
+  (0.6ms) COMMIT
12173
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12174
+  (0.3ms) BEGIN
12175
+  (0.2ms) COMMIT
12176
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
12177
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12178
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12179
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12180
+ Migrating to ChangeTheModelPostAtTime1489179665 (20170310210108)
12181
+  (0.3ms) BEGIN
12182
+  (16.3ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
12183
+  (4.5ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
12184
+  (4.0ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
12185
+  (0.4ms) ALTER TABLE "posts" ADD "content" text
12186
+  (0.4ms) ALTER TABLE "posts" ADD "title" character varying
12187
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210108"]]
12188
+  (1.5ms) COMMIT
12189
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12190
+  (0.3ms) BEGIN
12191
+  (0.2ms) COMMIT
12192
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
12193
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12194
+  (0.7ms) SELECT pg_try_advisory_lock(268089350951355045);
12195
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
12196
+ Migrating to ChangeTheModelPostAtTime1489179671 (20170310210115)
12197
+  (2.3ms) BEGIN
12198
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210115"]]
12199
+  (1.0ms) COMMIT
12200
+ ActiveRecord::InternalMetadata Load (2.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12201
+  (0.6ms) BEGIN
12202
+  (2.1ms) COMMIT
12203
+  (1.3ms) SELECT pg_advisory_unlock(268089350951355045)
12204
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
12205
+  (0.7ms) SELECT pg_try_advisory_lock(268089350951355045);
12206
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12207
+ Migrating to ChangeTheModelPostAtTime1489179691 (20170310210152)
12208
+  (0.6ms) BEGIN
12209
+  (1.3ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
12210
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210152"]]
12211
+  (9.2ms) COMMIT
12212
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12213
+  (0.6ms) BEGIN
12214
+  (1.9ms) COMMIT
12215
+  (2.0ms) SELECT pg_advisory_unlock(268089350951355045)
12216
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12217
+  (0.8ms) SELECT pg_try_advisory_lock(268089350951355045);
12218
+ ActiveRecord::SchemaMigration Load (3.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12219
+ Migrating to ChangeTheModelPostAtTime1489179726 (20170310210226)
12220
+  (0.6ms) BEGIN
12221
+  (1.3ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
12222
+  (2.4ms) ALTER TABLE "posts" DROP "title"
12223
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210226"]]
12224
+  (7.0ms) COMMIT
12225
+ ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12226
+  (0.7ms) BEGIN
12227
+  (0.5ms) COMMIT
12228
+  (0.8ms) SELECT pg_advisory_unlock(268089350951355045)
12229
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12230
+  (2.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12231
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12232
+ Migrating to ChangeTheModelPostAtTime1489179760 (20170310210255)
12233
+  (0.7ms) BEGIN
12234
+  (12.3ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
12235
+  (1.5ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
12236
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210255"]]
12237
+  (1.6ms) COMMIT
12238
+ ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12239
+  (0.5ms) BEGIN
12240
+  (0.6ms) COMMIT
12241
+  (0.7ms) SELECT pg_advisory_unlock(268089350951355045)
12242
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12243
+  (0.8ms) SELECT pg_try_advisory_lock(268089350951355045);
12244
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12245
+ Migrating to ChangeTheModelPostAtTime1489179789 (20170310210327)
12246
+  (0.9ms) BEGIN
12247
+  (12.6ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
12248
+ SQL (4.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210327"]]
12249
+  (7.1ms) COMMIT
12250
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12251
+  (0.6ms) BEGIN
12252
+  (0.4ms) COMMIT
12253
+  (0.7ms) SELECT pg_advisory_unlock(268089350951355045)
12254
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
12255
+  (0.8ms) SELECT pg_try_advisory_lock(268089350951355045);
12256
+ ActiveRecord::SchemaMigration Load (3.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12257
+ Migrating to CreatePosts (20170310210400)
12258
+  (0.6ms) BEGIN
12259
+  (17.4ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12260
+  (0.4ms) ROLLBACK
12261
+  (1.8ms) SELECT pg_advisory_unlock(268089350951355045)
12262
+  (1.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12263
+ ActiveRecord::SchemaMigration Load (3.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12264
+ Migrating to CreatePosts (20170310210400)
12265
+  (59.3ms) BEGIN
12266
+  (178.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12267
+  (1.3ms) ROLLBACK
12268
+  (0.9ms) SELECT pg_advisory_unlock(268089350951355045)
12269
+  (0.8ms) SELECT pg_try_advisory_lock(268089350951355045);
12270
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
12271
+ Migrating to CreatePosts (20170310210400)
12272
+  (18.6ms) BEGIN
12273
+  (11.2ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12274
+  (0.8ms) ROLLBACK
12275
+  (0.8ms) SELECT pg_advisory_unlock(268089350951355045)
12276
+  (1.5ms) SELECT pg_try_advisory_lock(268089350951355045);
12277
+ ActiveRecord::SchemaMigration Load (8.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12278
+ Migrating to CreatePosts (20170310210400)
12279
+  (0.8ms) BEGIN
12280
+  (15.0ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12281
+  (0.4ms) ROLLBACK
12282
+  (0.7ms) SELECT pg_advisory_unlock(268089350951355045)
12283
+  (1.1ms) SELECT pg_try_advisory_lock(268089350951355045);
12284
+ ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12285
+ Migrating to CreatePosts (20170310210400)
12286
+  (3.2ms) BEGIN
12287
+  (18.6ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12288
+  (0.5ms) ROLLBACK
12289
+  (1.0ms) SELECT pg_advisory_unlock(268089350951355045)
12290
+  (10.7ms) DROP TABLE if exists USERS cascade;
12291
+  (9.7ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12292
+  (4.3ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12293
+  (8.7ms) DROP TABLE if exists POSTS cascade;
12294
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12295
+  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12296
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12297
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12298
+ Migrating to ChangeTheModelPostAtTime1489180091 (20170310210815)
12299
+  (0.3ms) BEGIN
12300
+  (2.0ms) CREATE TABLE "posts" ("id" serial primary key)
12301
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210815"]]
12302
+  (5.5ms) COMMIT
12303
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12304
+  (0.2ms) BEGIN
12305
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:08:18 UTC], ["updated_at", 2017-03-10 21:08:18 UTC]]
12306
+  (0.5ms) COMMIT
12307
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12308
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12309
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12310
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12311
+ Migrating to ChangeTheModelUserAtTime1489180098 (20170310210822)
12312
+  (0.4ms) BEGIN
12313
+  (8.0ms) CREATE TABLE "users" ("id" serial primary key)
12314
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210822"]]
12315
+  (6.0ms) COMMIT
12316
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12317
+  (0.1ms) BEGIN
12318
+  (0.2ms) COMMIT
12319
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12320
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12321
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12322
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12323
+ Migrating to ChangeTheModelPostAtTime1489180105 (20170310210828)
12324
+  (0.3ms) BEGIN
12325
+  (5.0ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
12326
+  (1.2ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
12327
+  (3.9ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
12328
+  (0.4ms) ALTER TABLE "posts" ADD "content" text
12329
+  (0.3ms) ALTER TABLE "posts" ADD "title" character varying
12330
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210828"]]
12331
+  (1.3ms) COMMIT
12332
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12333
+  (0.2ms) BEGIN
12334
+  (0.2ms) COMMIT
12335
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12336
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12337
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12338
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12339
+ Migrating to ChangeTheModelPostAtTime1489180111 (20170310210834)
12340
+  (0.3ms) BEGIN
12341
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210834"]]
12342
+  (9.1ms) COMMIT
12343
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12344
+  (0.3ms) BEGIN
12345
+  (0.2ms) COMMIT
12346
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12347
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12348
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12349
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12350
+ Migrating to ChangeTheModelPostAtTime1489180117 (20170310210840)
12351
+  (0.2ms) BEGIN
12352
+  (0.7ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
12353
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210840"]]
12354
+  (8.7ms) COMMIT
12355
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12356
+  (0.2ms) BEGIN
12357
+  (0.3ms) COMMIT
12358
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12359
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12360
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12361
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12362
+ Migrating to ChangeTheModelPostAtTime1489180123 (20170310210847)
12363
+  (0.2ms) BEGIN
12364
+  (0.6ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
12365
+  (0.6ms) ALTER TABLE "posts" DROP "title"
12366
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210847"]]
12367
+  (7.7ms) COMMIT
12368
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12369
+  (0.2ms) BEGIN
12370
+  (0.2ms) COMMIT
12371
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12372
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12373
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12374
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12375
+ Migrating to ChangeTheModelPostAtTime1489180129 (20170310210853)
12376
+  (0.3ms) BEGIN
12377
+  (1.5ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
12378
+  (0.5ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
12379
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210853"]]
12380
+  (0.6ms) COMMIT
12381
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12382
+  (0.4ms) BEGIN
12383
+  (0.2ms) COMMIT
12384
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12385
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12386
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12387
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
12388
+ Migrating to ChangeTheModelPostAtTime1489180136 (20170310210901)
12389
+  (0.4ms) BEGIN
12390
+  (7.8ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
12391
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210901"]]
12392
+  (6.4ms) COMMIT
12393
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12394
+  (0.2ms) BEGIN
12395
+  (0.2ms) COMMIT
12396
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12397
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
12398
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12399
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12400
+ Migrating to ChangeTheModelPostAtTime1489180144 (20170310210908)
12401
+  (0.3ms) BEGIN
12402
+  (1.3ms) DROP INDEX "index_posts_on_views_by_users"
12403
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210908"]]
12404
+  (9.1ms) COMMIT
12405
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12406
+  (0.2ms) BEGIN
12407
+  (0.1ms) COMMIT
12408
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
12409
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12410
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12411
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12412
+ Migrating to ChangeTheModelPostAtTime1489180152 (20170310210916)
12413
+  (0.2ms) BEGIN
12414
+  (1.5ms) DROP TABLE "posts" CASCADE
12415
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210916"]]
12416
+  (1.4ms) COMMIT
12417
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12418
+  (0.2ms) BEGIN
12419
+  (0.2ms) COMMIT
12420
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12421
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12422
+  (9.5ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12423
+  (7.2ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12424
+  (8.4ms) DROP TABLE if exists USERS cascade;
12425
+  (5.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12426
+  (3.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12427
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12428
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12429
+ Migrating to CreatePosts (20170310210923)
12430
+  (0.4ms) BEGIN
12431
+  (3.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12432
+  (0.9ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12433
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210923"]]
12434
+  (0.5ms) COMMIT
12435
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12436
+  (0.2ms) BEGIN
12437
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:09:26 UTC], ["updated_at", 2017-03-10 21:09:26 UTC]]
12438
+  (0.5ms) COMMIT
12439
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12440
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12441
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12442
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12443
+ Migrating to CreateUsers (20170310210930)
12444
+  (0.2ms) BEGIN
12445
+  (5.5ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12446
+  (1.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12447
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210930"]]
12448
+  (0.6ms) COMMIT
12449
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12450
+  (0.2ms) BEGIN
12451
+  (0.2ms) COMMIT
12452
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12453
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12454
+  (7.0ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12455
+  (8.3ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12456
+  (7.9ms) DROP TABLE if exists POSTS cascade;
12457
+  (2.5ms) DROP TABLE if exists USERS cascade;
12458
+  (13.7ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12459
+  (3.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12460
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12461
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12462
+ Migrating to CreatePosts (20170310210935)
12463
+  (0.3ms) BEGIN
12464
+  (4.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12465
+  (1.2ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12466
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210935"]]
12467
+  (0.7ms) COMMIT
12468
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12469
+  (0.2ms) BEGIN
12470
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:09:38 UTC], ["updated_at", 2017-03-10 21:09:38 UTC]]
12471
+  (0.5ms) COMMIT
12472
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
12473
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12474
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12475
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
12476
+ Migrating to CreateUsers (20170310210941)
12477
+  (0.2ms) BEGIN
12478
+  (17.2ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12479
+  (1.6ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12480
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210941"]]
12481
+  (0.7ms) COMMIT
12482
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12483
+  (0.2ms) BEGIN
12484
+  (0.2ms) COMMIT
12485
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12486
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12487
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12488
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12489
+ Migrating to ChangeTheModelPostAtTime1489180184 (20170310210948)
12490
+  (0.3ms) BEGIN
12491
+  (0.8ms) ALTER TABLE "posts" ADD "user_id" integer
12492
+  (9.9ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
12493
+  (3.3ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
12494
+ FOREIGN KEY ("user_id")
12495
+ REFERENCES "users" ("id")
12496
+ 
12497
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210948"]]
12498
+  (0.6ms) COMMIT
12499
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12500
+  (0.2ms) BEGIN
12501
+  (0.2ms) COMMIT
12502
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12503
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12504
+  (8.6ms) DROP TABLE if exists USERS cascade;
12505
+  (6.9ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12506
+  (6.1ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12507
+  (2.3ms) DROP TABLE if exists POSTS cascade;
12508
+  (12.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12509
+  (3.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12510
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12511
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12512
+ Migrating to CreatePosts (20170310210955)
12513
+  (0.3ms) BEGIN
12514
+  (3.9ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12515
+  (1.1ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12516
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210955"]]
12517
+  (0.6ms) COMMIT
12518
+ Migrating to CreateUsers (20170310210958)
12519
+  (0.3ms) BEGIN
12520
+  (4.9ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12521
+  (1.2ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12522
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310210958"]]
12523
+  (0.6ms) COMMIT
12524
+ Migrating to CreateUserPosts (20170310211001)
12525
+  (0.3ms) BEGIN
12526
+  (3.7ms) CREATE 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"
12527
+ FOREIGN KEY ("user_id")
12528
+ REFERENCES "users" ("id")
12529
+ , CONSTRAINT "fk_rails_38a7c4b06f"
12530
+ FOREIGN KEY ("post_id")
12531
+ REFERENCES "posts" ("id")
12532
+ )
12533
+  (1.1ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
12534
+  (1.1ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
12535
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211001"]]
12536
+  (0.5ms) COMMIT
12537
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12538
+  (0.4ms) BEGIN
12539
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:10:03 UTC], ["updated_at", 2017-03-10 21:10:03 UTC]]
12540
+  (0.4ms) COMMIT
12541
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12542
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12543
+  (11.5ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12544
+  (7.7ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12545
+  (6.3ms) DROP TABLE if exists USERS cascade;
12546
+  (2.3ms) DROP TABLE if exists POSTS cascade;
12547
+  (2.2ms) DROP TABLE if exists USER_POSTS cascade;
12548
+  (12.7ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12549
+  (3.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12550
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12551
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12552
+ Migrating to CreatePosts (20170310211120)
12553
+  (0.2ms) BEGIN
12554
+  (3.9ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12555
+  (1.2ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12556
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211120"]]
12557
+  (0.5ms) COMMIT
12558
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12559
+  (0.4ms) BEGIN
12560
+ SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:11:23 UTC], ["updated_at", 2017-03-10 21:11:23 UTC]]
12561
+  (0.6ms) COMMIT
12562
+  (0.8ms) SELECT pg_advisory_unlock(268089350951355045)
12563
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12564
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12565
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12566
+ Migrating to CreateUsers (20170310211126)
12567
+  (0.2ms) BEGIN
12568
+  (12.7ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12569
+  (1.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12570
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211126"]]
12571
+  (0.6ms) COMMIT
12572
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12573
+  (0.2ms) BEGIN
12574
+  (0.2ms) COMMIT
12575
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12576
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12577
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12578
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12579
+ Migrating to ChangeTheModelPostAtTime1489180289 (20170310211133)
12580
+  (0.2ms) BEGIN
12581
+  (0.7ms) ALTER TABLE "posts" ADD "user_id" integer
12582
+  (9.3ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
12583
+  (2.6ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
12584
+ FOREIGN KEY ("user_id")
12585
+ REFERENCES "users" ("id")
12586
+ 
12587
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211133"]]
12588
+  (0.5ms) COMMIT
12589
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12590
+  (0.2ms) BEGIN
12591
+  (0.2ms) COMMIT
12592
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12593
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12594
+  (8.0ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12595
+  (7.1ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12596
+  (2.5ms) DROP TABLE if exists POSTS cascade;
12597
+  (2.3ms) DROP TABLE if exists USERS cascade;
12598
+  (11.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12599
+  (3.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12600
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12601
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12602
+ Migrating to CreatePosts (20170310211139)
12603
+  (0.2ms) BEGIN
12604
+  (4.5ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12605
+  (1.2ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12606
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211139"]]
12607
+  (0.7ms) COMMIT
12608
+ Migrating to CreateUsers (20170310211142)
12609
+  (0.3ms) BEGIN
12610
+  (4.6ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12611
+  (1.2ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12612
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211142"]]
12613
+  (0.9ms) COMMIT
12614
+ Migrating to CreateUserPosts (20170310211145)
12615
+  (1.5ms) BEGIN
12616
+  (3.6ms) CREATE 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"
12617
+ FOREIGN KEY ("user_id")
12618
+ REFERENCES "users" ("id")
12619
+ , CONSTRAINT "fk_rails_38a7c4b06f"
12620
+ FOREIGN KEY ("post_id")
12621
+ REFERENCES "posts" ("id")
12622
+ )
12623
+  (1.6ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
12624
+  (1.5ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
12625
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211145"]]
12626
+  (0.6ms) COMMIT
12627
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12628
+  (0.6ms) BEGIN
12629
+ SQL (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:11:48 UTC], ["updated_at", 2017-03-10 21:11:48 UTC]]
12630
+  (0.4ms) COMMIT
12631
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12632
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12633
+  (8.0ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12634
+  (9.6ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12635
+  (8.7ms) DROP TABLE if exists USERS cascade;
12636
+  (2.7ms) DROP TABLE if exists POSTS cascade;
12637
+  (1.7ms) DROP TABLE if exists USER_POSTS cascade;
12638
+  (12.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12639
+  (4.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12640
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12641
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12642
+ Migrating to ChangeTheModelPostAtTime1489180316 (20170310211159)
12643
+  (0.3ms) BEGIN
12644
+  (2.5ms) CREATE TABLE "posts" ("id" serial primary key)
12645
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211159"]]
12646
+  (0.5ms) COMMIT
12647
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12648
+  (0.3ms) BEGIN
12649
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:12:02 UTC], ["updated_at", 2017-03-10 21:12:02 UTC]]
12650
+  (0.5ms) COMMIT
12651
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12652
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12653
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12654
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12655
+ Migrating to ChangeTheModelUserAtTime1489180322 (20170310211205)
12656
+  (0.3ms) BEGIN
12657
+  (12.1ms) CREATE TABLE "users" ("id" serial primary key)
12658
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211205"]]
12659
+  (0.8ms) COMMIT
12660
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12661
+  (0.3ms) BEGIN
12662
+  (0.2ms) COMMIT
12663
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
12664
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12665
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12666
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12667
+ Migrating to ChangeTheModelPostAtTime1489180328 (20170310211212)
12668
+  (0.2ms) BEGIN
12669
+  (15.7ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
12670
+  (1.2ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
12671
+  (3.7ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
12672
+  (0.4ms) ALTER TABLE "posts" ADD "content" text
12673
+  (0.3ms) ALTER TABLE "posts" ADD "title" character varying
12674
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211212"]]
12675
+  (1.5ms) COMMIT
12676
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12677
+  (0.2ms) BEGIN
12678
+  (0.2ms) COMMIT
12679
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12680
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12681
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12682
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12683
+ Migrating to ChangeTheModelPostAtTime1489180335 (20170310211218)
12684
+  (0.4ms) BEGIN
12685
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211218"]]
12686
+  (7.8ms) COMMIT
12687
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12688
+  (0.3ms) BEGIN
12689
+  (0.2ms) COMMIT
12690
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
12691
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12692
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12693
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12694
+ Migrating to ChangeTheModelPostAtTime1489180341 (20170310211225)
12695
+  (0.4ms) BEGIN
12696
+  (0.6ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
12697
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211225"]]
12698
+  (8.7ms) COMMIT
12699
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12700
+  (0.2ms) BEGIN
12701
+  (0.2ms) COMMIT
12702
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12703
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12704
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
12705
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12706
+ Migrating to ChangeTheModelPostAtTime1489180348 (20170310211231)
12707
+  (0.3ms) BEGIN
12708
+  (0.4ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
12709
+  (0.7ms) ALTER TABLE "posts" DROP "title"
12710
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211231"]]
12711
+  (0.5ms) COMMIT
12712
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12713
+  (0.2ms) BEGIN
12714
+  (0.2ms) COMMIT
12715
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
12716
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12717
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12718
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12719
+ Migrating to ChangeTheModelPostAtTime1489180354 (20170310211237)
12720
+  (0.4ms) BEGIN
12721
+  (9.5ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
12722
+  (0.6ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
12723
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211237"]]
12724
+  (0.7ms) COMMIT
12725
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12726
+  (0.2ms) BEGIN
12727
+  (0.2ms) COMMIT
12728
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12729
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12730
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12731
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12732
+ Migrating to ChangeTheModelPostAtTime1489180360 (20170310211243)
12733
+  (0.4ms) BEGIN
12734
+  (9.9ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
12735
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211243"]]
12736
+  (0.8ms) COMMIT
12737
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12738
+  (0.2ms) BEGIN
12739
+  (0.2ms) COMMIT
12740
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12741
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12742
+  (0.7ms) SELECT pg_try_advisory_lock(268089350951355045);
12743
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12744
+ Migrating to ChangeTheModelPostAtTime1489180366 (20170310211249)
12745
+  (0.3ms) BEGIN
12746
+  (0.8ms) DROP INDEX "index_posts_on_views_by_users"
12747
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211249"]]
12748
+  (9.4ms) COMMIT
12749
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12750
+  (0.3ms) BEGIN
12751
+  (0.2ms) COMMIT
12752
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
12753
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12754
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12755
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12756
+ Migrating to ChangeTheModelPostAtTime1489180372 (20170310211255)
12757
+  (0.3ms) BEGIN
12758
+  (2.1ms) DROP TABLE "posts" CASCADE
12759
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211255"]]
12760
+  (9.6ms) COMMIT
12761
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12762
+  (0.3ms) BEGIN
12763
+  (0.3ms) COMMIT
12764
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12765
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12766
+  (8.8ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12767
+  (7.5ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12768
+  (6.8ms) DROP TABLE if exists USERS cascade;
12769
+  (13.7ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12770
+  (3.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12771
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12772
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12773
+ Migrating to CreatePosts (20170310211301)
12774
+  (0.2ms) BEGIN
12775
+  (5.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12776
+  (1.0ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12777
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211301"]]
12778
+  (0.5ms) COMMIT
12779
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12780
+  (0.2ms) BEGIN
12781
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:13:03 UTC], ["updated_at", 2017-03-10 21:13:03 UTC]]
12782
+  (0.5ms) COMMIT
12783
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12784
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12785
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12786
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
12787
+ Migrating to CreateUsers (20170310211306)
12788
+  (0.3ms) BEGIN
12789
+  (12.7ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12790
+  (1.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12791
+ SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211306"]]
12792
+  (0.6ms) COMMIT
12793
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12794
+  (0.2ms) BEGIN
12795
+  (0.2ms) COMMIT
12796
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12797
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12798
+  (8.0ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12799
+  (8.3ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12800
+  (6.7ms) DROP TABLE if exists POSTS cascade;
12801
+  (1.6ms) DROP TABLE if exists USERS cascade;
12802
+  (14.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12803
+  (3.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12804
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12805
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
12806
+ Migrating to CreatePosts (20170310211312)
12807
+  (0.5ms) BEGIN
12808
+  (4.0ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12809
+  (1.4ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12810
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211312"]]
12811
+  (0.5ms) COMMIT
12812
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12813
+  (0.2ms) BEGIN
12814
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:13:15 UTC], ["updated_at", 2017-03-10 21:13:15 UTC]]
12815
+  (0.4ms) COMMIT
12816
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
12817
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
12818
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
12819
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
12820
+ Migrating to CreateUsers (20170310211318)
12821
+  (0.3ms) BEGIN
12822
+  (6.4ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12823
+  (1.1ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12824
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211318"]]
12825
+  (0.6ms) COMMIT
12826
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12827
+  (0.2ms) BEGIN
12828
+  (0.4ms) COMMIT
12829
+  (0.6ms) SELECT pg_advisory_unlock(268089350951355045)
12830
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12831
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12832
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
12833
+ Migrating to ChangeTheModelPostAtTime1489180401 (20170310211324)
12834
+  (0.2ms) BEGIN
12835
+  (0.7ms) ALTER TABLE "posts" ADD "user_id" integer
12836
+  (1.5ms) CREATE INDEX "index_posts_on_user_id" ON "posts" ("user_id")
12837
+  (2.2ms) ALTER TABLE "posts" ADD CONSTRAINT "fk_rails_5b5ddfd518"
12838
+ FOREIGN KEY ("user_id")
12839
+ REFERENCES "users" ("id")
12840
+ 
12841
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211324"]]
12842
+  (0.6ms) COMMIT
12843
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12844
+  (0.2ms) BEGIN
12845
+  (0.2ms) COMMIT
12846
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12847
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12848
+  (7.8ms) DROP TABLE if exists USERS cascade;
12849
+  (7.1ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12850
+  (6.2ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12851
+  (2.7ms) DROP TABLE if exists POSTS cascade;
12852
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
12853
+  (3.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12854
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
12855
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
12856
+ Migrating to CreatePosts (20170310211330)
12857
+  (0.2ms) BEGIN
12858
+  (3.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12859
+  (1.1ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
12860
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211330"]]
12861
+  (0.5ms) COMMIT
12862
+ Migrating to CreateUsers (20170310211333)
12863
+  (0.3ms) BEGIN
12864
+  (4.5ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
12865
+  (1.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
12866
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211333"]]
12867
+  (0.7ms) COMMIT
12868
+ Migrating to CreateUserPosts (20170310211336)
12869
+  (6.7ms) BEGIN
12870
+  (5.4ms) CREATE 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"
12871
+ FOREIGN KEY ("user_id")
12872
+ REFERENCES "users" ("id")
12873
+ , CONSTRAINT "fk_rails_38a7c4b06f"
12874
+ FOREIGN KEY ("post_id")
12875
+ REFERENCES "posts" ("id")
12876
+ )
12877
+  (1.4ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
12878
+  (1.3ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
12879
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170310211336"]]
12880
+  (0.6ms) COMMIT
12881
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
12882
+  (0.2ms) BEGIN
12883
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-03-10 21:13:39 UTC], ["updated_at", 2017-03-10 21:13:39 UTC]]
12884
+  (0.5ms) COMMIT
12885
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
12886
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
12887
+  (6.7ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
12888
+  (6.9ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
12889
+  (8.3ms) DROP TABLE if exists USERS cascade;
12890
+  (1.8ms) DROP TABLE if exists POSTS cascade;
12891
+  (1.5ms) DROP TABLE if exists USER_POSTS cascade;