localtower 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37a6a6375eca452df5b9acfa3e8bd4ab28f8586c
4
- data.tar.gz: 1bb445cb7cace0531e63b820f8a540c885c2a42c
3
+ metadata.gz: 5cafeea60c6234407f4d8db12991b29e3b62154f
4
+ data.tar.gz: 03b295bd34a357031baedcf186b653f450a71b5e
5
5
  SHA512:
6
- metadata.gz: d4e24dae3934b8227c4ff0277b0c94db46406d2ec68fc2c8e68e08fa8ac145a88179f51f381688c20a23647222a3df69467afc3af9d5f3aaa08a9c02863b944a
7
- data.tar.gz: 2692fe7db394bba1df658a22089c835e52e6eb85f53f2bf5abe52d1f971ea8533d5d452570da90e12916291be1118bd00eb134d4fd556bdb013c020af57a6ec4
6
+ metadata.gz: 16abfd79086961f929db51054ad0e1bd5fba9d529ee85f3f245b594ad9c57852abe66bbbdcc88934a0189d7c5cb3cbfa4be35aa1517ae8f4d8d2b6032d20beb3
7
+ data.tar.gz: 1a351f130f102ab3a90c2a93f2627c13c942d790f6d635eb19cbb46683cf4d6243b69da1ed75a6cfe30dbd2e9e49482681c79e05374845bdac827c322f705a7e
data/README.md CHANGED
@@ -4,12 +4,20 @@
4
4
 
5
5
  ## INSTALL
6
6
 
7
+ Add to your Gemfile:
8
+
7
9
  # In your Gemfile
8
10
 
9
11
  group :development do
10
12
  gem "localtower"
11
13
  end
12
14
 
15
+ In your terminal:
16
+
17
+ bundle install
18
+
19
+ Add to your routes:
20
+
13
21
  # in config/routes.rb
14
22
 
15
23
  if Rails.env.development?
@@ -121,7 +121,7 @@ module Localtower
121
121
  # @opts =
122
122
  def initialize(opts)
123
123
  @thor = ThorGeneratorMigration.new
124
- @opts = opts.deep_stringify_keys
124
+ @opts = JSON[opts.to_json]
125
125
  end
126
126
 
127
127
  def remove_all_migrations
@@ -2,7 +2,7 @@ module Localtower
2
2
  module Generators
3
3
  class Model
4
4
  def initialize(opts)
5
- @opts = opts.deep_stringify_keys
5
+ @opts = JSON[opts.to_json]
6
6
  end
7
7
 
8
8
  def run
@@ -2,7 +2,7 @@ module Localtower
2
2
  module Generators
3
3
  class Relation
4
4
  def initialize(opts)
5
- @opts = opts.deep_stringify_keys
5
+ @opts = JSON[opts.to_json]
6
6
  end
7
7
 
8
8
  def run
@@ -1,3 +1,3 @@
1
1
  module Localtower
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
@@ -22922,3 +22922,29 @@ Started GET "/light-bootstrap-dashboard-master/assets/js/jquery-1.10.2.js" for 1
22922
22922
  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]]
22923
22923
   (0.2ms) BEGIN
22924
22924
   (0.2ms) COMMIT
22925
+  (211.8ms) DROP DATABASE IF EXISTS "localtower_dummy"
22926
+  (631.7ms) CREATE DATABASE "localtower_dummy" ENCODING = 'utf8'
22927
+  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
22928
+  (0.6ms) SELECT version FROM "schema_migrations"
22929
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
22930
+  (20.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22931
+ 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]]
22932
+  (0.2ms) BEGIN
22933
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2017-03-08 17:11:38 UTC], ["updated_at", 2017-03-08 17:11:38 UTC]]
22934
+  (6.6ms) COMMIT
22935
+ 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]]
22936
+  (0.2ms) BEGIN
22937
+  (0.2ms) COMMIT
22938
+  (204.0ms) DROP DATABASE IF EXISTS "localtower_dummy"
22939
+  (573.0ms) CREATE DATABASE "localtower_dummy" ENCODING = 'utf8'
22940
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
22941
+  (0.5ms) SELECT version FROM "schema_migrations"
22942
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
22943
+  (19.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22944
+ 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]]
22945
+  (0.2ms) BEGIN
22946
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", 2017-03-08 17:14:19 UTC], ["updated_at", 2017-03-08 17:14:19 UTC]]
22947
+  (6.3ms) COMMIT
22948
+ 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]]
22949
+  (0.4ms) BEGIN
22950
+  (0.2ms) COMMIT
@@ -11350,3 +11350,423 @@ Coverage report generated for RSpec to /Users/damln/Work/localtower/localtower/c
11350
11350
  [2017-03-08 17:50:52 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488991852
11351
11351
  [2017-03-08 17:50:55 +0100] -
11352
11352
  [2017-03-08 17:50:55 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488991852 in 2.560808 sec
11353
+ [2017-03-08 18:11:41 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993101
11354
+ [2017-03-08 18:11:44 +0100] - invoke active_record
11355
+ create db/migrate/20170308171144_change_the_model_post_at_time1488993101.rb
11356
+
11357
+ [2017-03-08 18:11:44 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993101 in 3.031734 sec
11358
+ [2017-03-08 18:11:44 +0100] - DOING...: bundle exec rake db:migrate
11359
+ [2017-03-08 18:11:47 +0100] - == 20170308171144 ChangeTheModelPostAtTime1488993101: migrating ===============
11360
+ -- create_table(:posts)
11361
+ -> 0.0179s
11362
+ == 20170308171144 ChangeTheModelPostAtTime1488993101: migrated (0.0180s) ======
11363
+
11364
+
11365
+ [2017-03-08 18:11:47 +0100] - DONE: bundle exec rake db:migrate in 2.73422 sec
11366
+ [2017-03-08 18:11:47 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993107
11367
+ [2017-03-08 18:11:50 +0100] - invoke active_record
11368
+ create db/migrate/20170308171150_change_the_model_post_at_time1488993107.rb
11369
+
11370
+ [2017-03-08 18:11:50 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993107 in 3.084204 sec
11371
+ [2017-03-08 18:11:50 +0100] - DOING...: bundle exec rake db:migrate
11372
+ [2017-03-08 18:11:53 +0100] - == 20170308171150 ChangeTheModelPostAtTime1488993107: migrating ===============
11373
+ -- add_column(:posts, :tags, :text, {:default=>[], :array=>true})
11374
+ -> 0.0244s
11375
+ -- add_index(:posts, :tags, {:using=>:gin})
11376
+ -> 0.0043s
11377
+ -- add_column(:posts, :views, :integer, {:default=>0, :null=>false, :index=>true})
11378
+ -> 0.0061s
11379
+ -- add_column(:posts, :content, :text)
11380
+ -> 0.0005s
11381
+ -- add_column(:posts, :title, :string, {:index=>true})
11382
+ -> 0.0005s
11383
+ == 20170308171150 ChangeTheModelPostAtTime1488993107: migrated (0.0361s) ======
11384
+
11385
+
11386
+ [2017-03-08 18:11:53 +0100] - DONE: bundle exec rake db:migrate in 3.037919 sec
11387
+ [2017-03-08 18:11:53 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993113
11388
+ [2017-03-08 18:11:56 +0100] - invoke active_record
11389
+ create db/migrate/20170308171156_change_the_model_post_at_time1488993113.rb
11390
+
11391
+ [2017-03-08 18:11:56 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993113 in 3.111254 sec
11392
+ [2017-03-08 18:11:56 +0100] - DOING...: bundle exec rake db:migrate
11393
+ [2017-03-08 18:11:59 +0100] - == 20170308171156 ChangeTheModelPostAtTime1488993113: migrating ===============
11394
+ == 20170308171156 ChangeTheModelPostAtTime1488993113: migrated (0.0000s) ======
11395
+
11396
+
11397
+ [2017-03-08 18:11:59 +0100] - DONE: bundle exec rake db:migrate in 2.802872 sec
11398
+ [2017-03-08 18:11:59 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993119
11399
+ [2017-03-08 18:12:02 +0100] - invoke active_record
11400
+ create db/migrate/20170308171202_change_the_model_post_at_time1488993119.rb
11401
+
11402
+ [2017-03-08 18:12:02 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993119 in 3.04419 sec
11403
+ [2017-03-08 18:12:02 +0100] - DOING...: bundle exec rake db:migrate
11404
+ [2017-03-08 18:12:05 +0100] - == 20170308171202 ChangeTheModelPostAtTime1488993119: migrating ===============
11405
+ -- rename_column(:posts, :content, :content_new)
11406
+ -> 0.0045s
11407
+ == 20170308171202 ChangeTheModelPostAtTime1488993119: migrated (0.0045s) ======
11408
+
11409
+
11410
+ [2017-03-08 18:12:05 +0100] - DONE: bundle exec rake db:migrate in 2.80113 sec
11411
+ [2017-03-08 18:12:05 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993125
11412
+ [2017-03-08 18:12:08 +0100] - invoke active_record
11413
+ create db/migrate/20170308171208_change_the_model_post_at_time1488993125.rb
11414
+
11415
+ [2017-03-08 18:12:08 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993125 in 3.116815 sec
11416
+ [2017-03-08 18:12:08 +0100] - DOING...: bundle exec rake db:migrate
11417
+ [2017-03-08 18:12:11 +0100] - == 20170308171208 ChangeTheModelPostAtTime1488993125: migrating ===============
11418
+ -- rename_column(:posts, :views, :views_by_users)
11419
+ -> 0.0051s
11420
+ -- remove_column(:posts, :title)
11421
+ -> 0.0007s
11422
+ == 20170308171208 ChangeTheModelPostAtTime1488993125: migrated (0.0059s) ======
11423
+
11424
+
11425
+ [2017-03-08 18:12:11 +0100] - DONE: bundle exec rake db:migrate in 3.038089 sec
11426
+ [2017-03-08 18:12:11 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993131
11427
+ [2017-03-08 18:12:14 +0100] - invoke active_record
11428
+ create db/migrate/20170308171214_change_the_model_post_at_time1488993131.rb
11429
+
11430
+ [2017-03-08 18:12:14 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993131 in 3.079892 sec
11431
+ [2017-03-08 18:12:14 +0100] - DOING...: bundle exec rake db:migrate
11432
+ [2017-03-08 18:12:17 +0100] - == 20170308171214 ChangeTheModelPostAtTime1488993131: migrating ===============
11433
+ -- add_index(:posts, :views_by_users)
11434
+ -> 0.0046s
11435
+ -- change_column(:posts, :content_new, :string)
11436
+ -> 0.0005s
11437
+ == 20170308171214 ChangeTheModelPostAtTime1488993131: migrated (0.0052s) ======
11438
+
11439
+
11440
+ [2017-03-08 18:12:17 +0100] - DONE: bundle exec rake db:migrate in 2.917181 sec
11441
+ [2017-03-08 18:12:17 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993137
11442
+ [2017-03-08 18:12:20 +0100] - invoke active_record
11443
+ create db/migrate/20170308171220_change_the_model_post_at_time1488993137.rb
11444
+
11445
+ [2017-03-08 18:12:20 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993137 in 3.294776 sec
11446
+ [2017-03-08 18:12:20 +0100] - DOING...: bundle exec rake db:migrate
11447
+ [2017-03-08 18:12:23 +0100] - == 20170308171220 ChangeTheModelPostAtTime1488993137: migrating ===============
11448
+ -- add_index(:posts, :content_new)
11449
+ -> 0.0113s
11450
+ == 20170308171220 ChangeTheModelPostAtTime1488993137: migrated (0.0114s) ======
11451
+
11452
+
11453
+ [2017-03-08 18:12:23 +0100] - DONE: bundle exec rake db:migrate in 3.032266 sec
11454
+ [2017-03-08 18:12:23 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993143
11455
+ [2017-03-08 18:12:27 +0100] - invoke active_record
11456
+ create db/migrate/20170308171227_change_the_model_post_at_time1488993143.rb
11457
+
11458
+ [2017-03-08 18:12:27 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993143 in 3.429998 sec
11459
+ [2017-03-08 18:12:27 +0100] - DOING...: bundle exec rake db:migrate
11460
+ [2017-03-08 18:12:30 +0100] - == 20170308171227 ChangeTheModelPostAtTime1488993143: migrating ===============
11461
+ -- remove_index(:posts, :views_by_users)
11462
+ -> 0.0112s
11463
+ == 20170308171227 ChangeTheModelPostAtTime1488993143: migrated (0.0113s) ======
11464
+
11465
+
11466
+ [2017-03-08 18:12:30 +0100] - DONE: bundle exec rake db:migrate in 3.184557 sec
11467
+ [2017-03-08 18:12:30 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993150
11468
+ [2017-03-08 18:12:33 +0100] - invoke active_record
11469
+ create db/migrate/20170308171233_change_the_model_post_at_time1488993150.rb
11470
+
11471
+ [2017-03-08 18:12:33 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993150 in 3.511931 sec
11472
+ [2017-03-08 18:12:33 +0100] - DOING...: bundle exec rake db:migrate
11473
+ [2017-03-08 18:12:37 +0100] - == 20170308171233 ChangeTheModelPostAtTime1488993150: migrating ===============
11474
+ -- drop_table(:posts, {:force=>:cascade})
11475
+ -> 0.0029s
11476
+ == 20170308171233 ChangeTheModelPostAtTime1488993150: migrated (0.0030s) ======
11477
+
11478
+
11479
+ [2017-03-08 18:12:37 +0100] - DONE: bundle exec rake db:migrate in 3.096018 sec
11480
+ [2017-03-08 18:12:37 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text
11481
+ [2017-03-08 18:12:39 +0100] - invoke active_record
11482
+ create db/migrate/20170308171239_create_posts.rb
11483
+ create app/models/application_record.rb
11484
+ create app/models/post.rb
11485
+
11486
+ [2017-03-08 18:12:39 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text in 2.859644 sec
11487
+ [2017-03-08 18:12:39 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate
11488
+ [2017-03-08 18:12:42 +0100] - == 20170308171239 CreatePosts: migrating ======================================
11489
+ -- create_table(:posts)
11490
+ -> 0.0049s
11491
+ -- add_index(:posts, :title)
11492
+ -> 0.0038s
11493
+ == 20170308171239 CreatePosts: migrated (0.0088s) =============================
11494
+
11495
+
11496
+ [2017-03-08 18:12:42 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate in 2.606172 sec
11497
+ [2017-03-08 18:12:42 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test
11498
+ [2017-03-08 18:12:45 +0100] -
11499
+ [2017-03-08 18:12:45 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test in 2.488139 sec
11500
+ [2017-03-08 18:12:45 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb
11501
+ [2017-03-08 18:12:47 +0100] - invoke active_record
11502
+ create db/migrate/20170308171247_create_users.rb
11503
+ create app/models/user.rb
11504
+
11505
+ [2017-03-08 18:12:47 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb in 2.839461 sec
11506
+ [2017-03-08 18:12:47 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate
11507
+ [2017-03-08 18:12:50 +0100] - == 20170308171247 CreateUsers: migrating ======================================
11508
+ -- create_table(:users)
11509
+ -> 0.0144s
11510
+ -- add_index(:users, :name)
11511
+ -> 0.0045s
11512
+ == 20170308171247 CreateUsers: migrated (0.0190s) =============================
11513
+
11514
+
11515
+ [2017-03-08 18:12:50 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate in 2.43744 sec
11516
+ [2017-03-08 18:12:50 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test
11517
+ [2017-03-08 18:12:52 +0100] -
11518
+ [2017-03-08 18:12:52 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test in 2.543097 sec
11519
+ [2017-03-08 18:12:52 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text
11520
+ [2017-03-08 18:12:56 +0100] - invoke active_record
11521
+ create db/migrate/20170308171256_create_posts.rb
11522
+ create app/models/application_record.rb
11523
+ create app/models/post.rb
11524
+
11525
+ [2017-03-08 18:12:56 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text in 3.177408 sec
11526
+ [2017-03-08 18:12:56 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb
11527
+ [2017-03-08 18:12:59 +0100] - invoke active_record
11528
+ create db/migrate/20170308171259_create_users.rb
11529
+ create app/models/user.rb
11530
+
11531
+ [2017-03-08 18:12:59 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb in 2.9574 sec
11532
+ [2017-03-08 18:12:59 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model UserPost user:references post:references
11533
+ [2017-03-08 18:13:02 +0100] - invoke active_record
11534
+ create db/migrate/20170308171301_create_user_posts.rb
11535
+ create app/models/user_post.rb
11536
+
11537
+ [2017-03-08 18:13:02 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model UserPost user:references post:references in 2.930459 sec
11538
+ [2017-03-08 18:13:02 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate
11539
+ [2017-03-08 18:13:04 +0100] - == 20170308171256 CreatePosts: migrating ======================================
11540
+ -- create_table(:posts)
11541
+ -> 0.0045s
11542
+ -- add_index(:posts, :title)
11543
+ -> 0.0036s
11544
+ == 20170308171256 CreatePosts: migrated (0.0082s) =============================
11545
+
11546
+ == 20170308171259 CreateUsers: migrating ======================================
11547
+ -- create_table(:users)
11548
+ -> 0.0044s
11549
+ -- add_index(:users, :name)
11550
+ -> 0.0028s
11551
+ == 20170308171259 CreateUsers: migrated (0.0073s) =============================
11552
+
11553
+ == 20170308171301 CreateUserPosts: migrating ==================================
11554
+ -- create_table(:user_posts)
11555
+ -> 0.0147s
11556
+ == 20170308171301 CreateUserPosts: migrated (0.0148s) =========================
11557
+
11558
+
11559
+ [2017-03-08 18:13:04 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate in 2.622411 sec
11560
+ [2017-03-08 18:13:04 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test
11561
+ [2017-03-08 18:13:07 +0100] -
11562
+ [2017-03-08 18:13:07 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test in 2.533552 sec
11563
+ [2017-03-08 18:14:22 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993262
11564
+ [2017-03-08 18:14:25 +0100] - invoke active_record
11565
+ create db/migrate/20170308171425_change_the_model_post_at_time1488993262.rb
11566
+
11567
+ [2017-03-08 18:14:25 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993262 in 3.012489 sec
11568
+ [2017-03-08 18:14:25 +0100] - DOING...: bundle exec rake db:migrate
11569
+ [2017-03-08 18:14:28 +0100] - == 20170308171425 ChangeTheModelPostAtTime1488993262: migrating ===============
11570
+ -- create_table(:posts)
11571
+ -> 0.0246s
11572
+ == 20170308171425 ChangeTheModelPostAtTime1488993262: migrated (0.0247s) ======
11573
+
11574
+
11575
+ [2017-03-08 18:14:28 +0100] - DONE: bundle exec rake db:migrate in 2.82546 sec
11576
+ [2017-03-08 18:14:28 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993268
11577
+ [2017-03-08 18:14:31 +0100] - invoke active_record
11578
+ create db/migrate/20170308171431_change_the_model_post_at_time1488993268.rb
11579
+
11580
+ [2017-03-08 18:14:31 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993268 in 2.848167 sec
11581
+ [2017-03-08 18:14:31 +0100] - DOING...: bundle exec rake db:migrate
11582
+ [2017-03-08 18:14:33 +0100] - == 20170308171431 ChangeTheModelPostAtTime1488993268: migrating ===============
11583
+ -- add_column(:posts, :tags, :text, {:default=>[], :array=>true})
11584
+ -> 0.0067s
11585
+ -- add_index(:posts, :tags, {:using=>:gin})
11586
+ -> 0.0042s
11587
+ -- add_column(:posts, :views, :integer, {:default=>0, :null=>false, :index=>true})
11588
+ -> 0.0063s
11589
+ -- add_column(:posts, :content, :text)
11590
+ -> 0.0014s
11591
+ -- add_column(:posts, :title, :string, {:index=>true})
11592
+ -> 0.0004s
11593
+ == 20170308171431 ChangeTheModelPostAtTime1488993268: migrated (0.0192s) ======
11594
+
11595
+
11596
+ [2017-03-08 18:14:33 +0100] - DONE: bundle exec rake db:migrate in 2.654942 sec
11597
+ [2017-03-08 18:14:33 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993273
11598
+ [2017-03-08 18:14:36 +0100] - invoke active_record
11599
+ create db/migrate/20170308171436_change_the_model_post_at_time1488993273.rb
11600
+
11601
+ [2017-03-08 18:14:36 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993273 in 2.98209 sec
11602
+ [2017-03-08 18:14:36 +0100] - DOING...: bundle exec rake db:migrate
11603
+ [2017-03-08 18:14:39 +0100] - == 20170308171436 ChangeTheModelPostAtTime1488993273: migrating ===============
11604
+ == 20170308171436 ChangeTheModelPostAtTime1488993273: migrated (0.0000s) ======
11605
+
11606
+
11607
+ [2017-03-08 18:14:39 +0100] - DONE: bundle exec rake db:migrate in 2.667114 sec
11608
+ [2017-03-08 18:14:39 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993279
11609
+ [2017-03-08 18:14:42 +0100] - invoke active_record
11610
+ create db/migrate/20170308171442_change_the_model_post_at_time1488993279.rb
11611
+
11612
+ [2017-03-08 18:14:42 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993279 in 2.903947 sec
11613
+ [2017-03-08 18:14:42 +0100] - DOING...: bundle exec rake db:migrate
11614
+ [2017-03-08 18:14:45 +0100] - == 20170308171442 ChangeTheModelPostAtTime1488993279: migrating ===============
11615
+ -- rename_column(:posts, :content, :content_new)
11616
+ -> 0.0049s
11617
+ == 20170308171442 ChangeTheModelPostAtTime1488993279: migrated (0.0050s) ======
11618
+
11619
+
11620
+ [2017-03-08 18:14:45 +0100] - DONE: bundle exec rake db:migrate in 2.666583 sec
11621
+ [2017-03-08 18:14:45 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993285
11622
+ [2017-03-08 18:14:48 +0100] - invoke active_record
11623
+ create db/migrate/20170308171448_change_the_model_post_at_time1488993285.rb
11624
+
11625
+ [2017-03-08 18:14:48 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993285 in 3.051295 sec
11626
+ [2017-03-08 18:14:48 +0100] - DOING...: bundle exec rake db:migrate
11627
+ [2017-03-08 18:14:51 +0100] - == 20170308171448 ChangeTheModelPostAtTime1488993285: migrating ===============
11628
+ -- rename_column(:posts, :views, :views_by_users)
11629
+ -> 0.0045s
11630
+ -- remove_column(:posts, :title)
11631
+ -> 0.0006s
11632
+ == 20170308171448 ChangeTheModelPostAtTime1488993285: migrated (0.0052s) ======
11633
+
11634
+
11635
+ [2017-03-08 18:14:51 +0100] - DONE: bundle exec rake db:migrate in 3.491054 sec
11636
+ [2017-03-08 18:14:51 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993291
11637
+ [2017-03-08 18:14:54 +0100] - invoke active_record
11638
+ create db/migrate/20170308171454_change_the_model_post_at_time1488993291.rb
11639
+
11640
+ [2017-03-08 18:14:54 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993291 in 2.977647 sec
11641
+ [2017-03-08 18:14:54 +0100] - DOING...: bundle exec rake db:migrate
11642
+ [2017-03-08 18:14:57 +0100] - == 20170308171454 ChangeTheModelPostAtTime1488993291: migrating ===============
11643
+ -- add_index(:posts, :views_by_users)
11644
+ -> 0.0044s
11645
+ -- change_column(:posts, :content_new, :string)
11646
+ -> 0.0005s
11647
+ == 20170308171454 ChangeTheModelPostAtTime1488993291: migrated (0.0050s) ======
11648
+
11649
+
11650
+ [2017-03-08 18:14:57 +0100] - DONE: bundle exec rake db:migrate in 2.748065 sec
11651
+ [2017-03-08 18:14:57 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993297
11652
+ [2017-03-08 18:15:00 +0100] - invoke active_record
11653
+ create db/migrate/20170308171500_change_the_model_post_at_time1488993297.rb
11654
+
11655
+ [2017-03-08 18:15:00 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993297 in 3.26788 sec
11656
+ [2017-03-08 18:15:00 +0100] - DOING...: bundle exec rake db:migrate
11657
+ [2017-03-08 18:15:03 +0100] - == 20170308171500 ChangeTheModelPostAtTime1488993297: migrating ===============
11658
+ -- add_index(:posts, :content_new)
11659
+ -> 0.0130s
11660
+ == 20170308171500 ChangeTheModelPostAtTime1488993297: migrated (0.0131s) ======
11661
+
11662
+
11663
+ [2017-03-08 18:15:03 +0100] - DONE: bundle exec rake db:migrate in 2.924062 sec
11664
+ [2017-03-08 18:15:03 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993303
11665
+ [2017-03-08 18:15:06 +0100] - invoke active_record
11666
+ create db/migrate/20170308171506_change_the_model_post_at_time1488993303.rb
11667
+
11668
+ [2017-03-08 18:15:06 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993303 in 3.204302 sec
11669
+ [2017-03-08 18:15:06 +0100] - DOING...: bundle exec rake db:migrate
11670
+ [2017-03-08 18:15:09 +0100] - == 20170308171506 ChangeTheModelPostAtTime1488993303: migrating ===============
11671
+ -- remove_index(:posts, :views_by_users)
11672
+ -> 0.0073s
11673
+ == 20170308171506 ChangeTheModelPostAtTime1488993303: migrated (0.0074s) ======
11674
+
11675
+
11676
+ [2017-03-08 18:15:09 +0100] - DONE: bundle exec rake db:migrate in 2.862038 sec
11677
+ [2017-03-08 18:15:09 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993309
11678
+ [2017-03-08 18:15:13 +0100] - invoke active_record
11679
+ create db/migrate/20170308171513_change_the_model_post_at_time1488993309.rb
11680
+
11681
+ [2017-03-08 18:15:13 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1488993309 in 3.45886 sec
11682
+ [2017-03-08 18:15:13 +0100] - DOING...: bundle exec rake db:migrate
11683
+ [2017-03-08 18:15:15 +0100] - == 20170308171513 ChangeTheModelPostAtTime1488993309: migrating ===============
11684
+ -- drop_table(:posts, {:force=>:cascade})
11685
+ -> 0.0099s
11686
+ == 20170308171513 ChangeTheModelPostAtTime1488993309: migrated (0.0099s) ======
11687
+
11688
+
11689
+ [2017-03-08 18:15:15 +0100] - DONE: bundle exec rake db:migrate in 2.74837 sec
11690
+ [2017-03-08 18:15:16 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text
11691
+ [2017-03-08 18:15:19 +0100] - invoke active_record
11692
+ create db/migrate/20170308171519_create_posts.rb
11693
+ create app/models/application_record.rb
11694
+ create app/models/post.rb
11695
+
11696
+ [2017-03-08 18:15:19 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text in 3.041091 sec
11697
+ [2017-03-08 18:15:19 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate
11698
+ [2017-03-08 18:15:22 +0100] - == 20170308171519 CreatePosts: migrating ======================================
11699
+ -- create_table(:posts)
11700
+ -> 0.0056s
11701
+ -- add_index(:posts, :title)
11702
+ -> 0.0036s
11703
+ == 20170308171519 CreatePosts: migrated (0.0093s) =============================
11704
+
11705
+
11706
+ [2017-03-08 18:15:22 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate in 3.067215 sec
11707
+ [2017-03-08 18:15:22 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test
11708
+ [2017-03-08 18:15:25 +0100] -
11709
+ [2017-03-08 18:15:25 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test in 3.092402 sec
11710
+ [2017-03-08 18:15:25 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb
11711
+ [2017-03-08 18:15:29 +0100] - invoke active_record
11712
+ create db/migrate/20170308171529_create_users.rb
11713
+ create app/models/user.rb
11714
+
11715
+ [2017-03-08 18:15:29 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb in 3.872238 sec
11716
+ [2017-03-08 18:15:29 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate
11717
+ [2017-03-08 18:15:31 +0100] - == 20170308171529 CreateUsers: migrating ======================================
11718
+ -- create_table(:users)
11719
+ -> 0.0138s
11720
+ -- add_index(:users, :name)
11721
+ -> 0.0037s
11722
+ == 20170308171529 CreateUsers: migrated (0.0177s) =============================
11723
+
11724
+
11725
+ [2017-03-08 18:15:31 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate in 2.825149 sec
11726
+ [2017-03-08 18:15:31 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test
11727
+ [2017-03-08 18:15:34 +0100] -
11728
+ [2017-03-08 18:15:34 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test in 2.905557 sec
11729
+ [2017-03-08 18:15:34 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text
11730
+ [2017-03-08 18:15:38 +0100] - invoke active_record
11731
+ create db/migrate/20170308171538_create_posts.rb
11732
+ create app/models/application_record.rb
11733
+ create app/models/post.rb
11734
+
11735
+ [2017-03-08 18:15:38 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text in 3.15904 sec
11736
+ [2017-03-08 18:15:38 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb
11737
+ [2017-03-08 18:15:41 +0100] - invoke active_record
11738
+ create db/migrate/20170308171541_create_users.rb
11739
+ create app/models/user.rb
11740
+
11741
+ [2017-03-08 18:15:41 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb in 3.132922 sec
11742
+ [2017-03-08 18:15:41 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model UserPost user:references post:references
11743
+ [2017-03-08 18:15:44 +0100] - invoke active_record
11744
+ create db/migrate/20170308171544_create_user_posts.rb
11745
+ create app/models/user_post.rb
11746
+
11747
+ [2017-03-08 18:15:44 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rails g model UserPost user:references post:references in 3.186205 sec
11748
+ [2017-03-08 18:15:44 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate
11749
+ [2017-03-08 18:15:47 +0100] - == 20170308171538 CreatePosts: migrating ======================================
11750
+ -- create_table(:posts)
11751
+ -> 0.0043s
11752
+ -- add_index(:posts, :title)
11753
+ -> 0.0039s
11754
+ == 20170308171538 CreatePosts: migrated (0.0083s) =============================
11755
+
11756
+ == 20170308171541 CreateUsers: migrating ======================================
11757
+ -- create_table(:users)
11758
+ -> 0.0039s
11759
+ -- add_index(:users, :name)
11760
+ -> 0.0035s
11761
+ == 20170308171541 CreateUsers: migrated (0.0076s) =============================
11762
+
11763
+ == 20170308171544 CreateUserPosts: migrating ==================================
11764
+ -- create_table(:user_posts)
11765
+ -> 0.0213s
11766
+ == 20170308171544 CreateUserPosts: migrated (0.0214s) =========================
11767
+
11768
+
11769
+ [2017-03-08 18:15:47 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate in 2.869449 sec
11770
+ [2017-03-08 18:15:47 +0100] - DOING...: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test
11771
+ [2017-03-08 18:15:50 +0100] -
11772
+ [2017-03-08 18:15:50 +0100] - DONE: cd '/Users/damln/Work/localtower/localtower/spec/dummy' && bundle exec rake db:migrate RAILS_ENV=test in 2.821587 sec
@@ -9164,3 +9164,431 @@ FOREIGN KEY ("post_id")
9164
9164
   (2.3ms) DROP TABLE if exists USER_POSTS cascade;
9165
9165
   (9.9ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9166
9166
   (12.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9167
+  (10.4ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9168
+  (8.7ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9169
+  (24.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
9170
+  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9171
+  (0.8ms) SELECT pg_try_advisory_lock(268089350951355045);
9172
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9173
+ Migrating to ChangeTheModelPostAtTime1488993101 (20170308171144)
9174
+  (0.3ms) BEGIN
9175
+  (17.3ms) CREATE TABLE "posts" ("id" serial primary key)
9176
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171144"]]
9177
+  (0.5ms) COMMIT
9178
+ 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]]
9179
+  (0.2ms) BEGIN
9180
+ 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-08 17:11:47 UTC], ["updated_at", 2017-03-08 17:11:47 UTC]]
9181
+  (0.3ms) COMMIT
9182
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
9183
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9184
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
9185
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9186
+ Migrating to ChangeTheModelPostAtTime1488993107 (20170308171150)
9187
+  (0.3ms) BEGIN
9188
+  (23.6ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
9189
+  (1.6ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
9190
+  (3.4ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
9191
+  (0.3ms) ALTER TABLE "posts" ADD "content" text
9192
+  (0.3ms) ALTER TABLE "posts" ADD "title" character varying
9193
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171150"]]
9194
+  (1.3ms) COMMIT
9195
+ 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]]
9196
+  (0.2ms) BEGIN
9197
+  (0.2ms) COMMIT
9198
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9199
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9200
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9201
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9202
+ Migrating to ChangeTheModelPostAtTime1488993113 (20170308171156)
9203
+  (0.3ms) BEGIN
9204
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171156"]]
9205
+  (7.8ms) COMMIT
9206
+ 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]]
9207
+  (0.2ms) BEGIN
9208
+  (0.2ms) COMMIT
9209
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9210
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9211
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9212
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9213
+ Migrating to ChangeTheModelPostAtTime1488993119 (20170308171202)
9214
+  (0.3ms) BEGIN
9215
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
9216
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171202"]]
9217
+  (8.0ms) COMMIT
9218
+ 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]]
9219
+  (0.3ms) BEGIN
9220
+  (0.3ms) COMMIT
9221
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9222
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
9223
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9224
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9225
+ Migrating to ChangeTheModelPostAtTime1488993125 (20170308171208)
9226
+  (0.2ms) BEGIN
9227
+  (0.9ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
9228
+  (0.6ms) ALTER TABLE "posts" DROP "title"
9229
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171208"]]
9230
+  (0.6ms) COMMIT
9231
+ 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]]
9232
+  (0.2ms) BEGIN
9233
+  (0.2ms) COMMIT
9234
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9235
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9236
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9237
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9238
+ Migrating to ChangeTheModelPostAtTime1488993131 (20170308171214)
9239
+  (0.3ms) BEGIN
9240
+  (1.7ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
9241
+  (0.4ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
9242
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171214"]]
9243
+  (0.4ms) COMMIT
9244
+ 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]]
9245
+  (0.2ms) BEGIN
9246
+  (0.1ms) COMMIT
9247
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
9248
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9249
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9250
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
9251
+ Migrating to ChangeTheModelPostAtTime1488993137 (20170308171220)
9252
+  (0.4ms) BEGIN
9253
+  (9.2ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
9254
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171220"]]
9255
+  (0.6ms) COMMIT
9256
+ 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]]
9257
+  (0.3ms) BEGIN
9258
+  (0.2ms) COMMIT
9259
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9260
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9261
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9262
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9263
+ Migrating to ChangeTheModelPostAtTime1488993143 (20170308171227)
9264
+  (0.2ms) BEGIN
9265
+  (0.8ms) DROP INDEX "index_posts_on_views_by_users"
9266
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171227"]]
9267
+  (1.2ms) COMMIT
9268
+ 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]]
9269
+  (0.3ms) BEGIN
9270
+  (0.2ms) COMMIT
9271
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9272
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9273
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9274
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
9275
+ Migrating to ChangeTheModelPostAtTime1488993150 (20170308171233)
9276
+  (0.3ms) BEGIN
9277
+  (2.7ms) DROP TABLE "posts" CASCADE
9278
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171233"]]
9279
+  (1.8ms) COMMIT
9280
+ 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]]
9281
+  (0.3ms) BEGIN
9282
+  (0.2ms) COMMIT
9283
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9284
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9285
+  (7.6ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9286
+  (7.8ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9287
+  (12.3ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
9288
+  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9289
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9290
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9291
+ Migrating to CreatePosts (20170308171239)
9292
+  (0.2ms) BEGIN
9293
+  (4.4ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9294
+  (1.3ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
9295
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171239"]]
9296
+  (0.6ms) COMMIT
9297
+ 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]]
9298
+  (0.2ms) BEGIN
9299
+ 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-08 17:12:42 UTC], ["updated_at", 2017-03-08 17:12:42 UTC]]
9300
+  (0.5ms) COMMIT
9301
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
9302
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9303
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
9304
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9305
+ 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]]
9306
+  (0.2ms) BEGIN
9307
+  (0.2ms) COMMIT
9308
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
9309
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9310
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9311
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9312
+ Migrating to CreateUsers (20170308171247)
9313
+  (0.2ms) BEGIN
9314
+  (13.8ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9315
+  (1.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9316
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171247"]]
9317
+  (0.6ms) COMMIT
9318
+ 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]]
9319
+  (0.3ms) BEGIN
9320
+  (0.2ms) COMMIT
9321
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9322
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9323
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9324
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9325
+ 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]]
9326
+  (0.2ms) BEGIN
9327
+  (0.2ms) COMMIT
9328
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9329
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9330
+  (8.2ms) DROP TABLE if exists USERS cascade;
9331
+  (7.4ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9332
+  (7.2ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9333
+  (2.2ms) DROP TABLE if exists POSTS cascade;
9334
+  (13.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
9335
+  (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)
9336
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
9337
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9338
+ Migrating to CreatePosts (20170308171256)
9339
+  (0.2ms) BEGIN
9340
+  (3.7ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9341
+  (0.9ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
9342
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171256"]]
9343
+  (0.5ms) COMMIT
9344
+ Migrating to CreateUsers (20170308171259)
9345
+  (0.3ms) BEGIN
9346
+  (3.9ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9347
+  (1.1ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9348
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171259"]]
9349
+  (0.6ms) COMMIT
9350
+ Migrating to CreateUserPosts (20170308171301)
9351
+  (0.3ms) BEGIN
9352
+  (7.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"
9353
+ FOREIGN KEY ("user_id")
9354
+ REFERENCES "users" ("id")
9355
+ , CONSTRAINT "fk_rails_38a7c4b06f"
9356
+ FOREIGN KEY ("post_id")
9357
+ REFERENCES "posts" ("id")
9358
+ )
9359
+  (0.9ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
9360
+  (0.9ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
9361
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171301"]]
9362
+  (0.5ms) COMMIT
9363
+ 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]]
9364
+  (0.2ms) BEGIN
9365
+ 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-08 17:13:04 UTC], ["updated_at", 2017-03-08 17:13:04 UTC]]
9366
+  (0.4ms) COMMIT
9367
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9368
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9369
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9370
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9371
+ 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]]
9372
+  (0.2ms) BEGIN
9373
+  (0.2ms) COMMIT
9374
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
9375
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9376
+  (7.8ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9377
+  (6.9ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9378
+  (8.8ms) DROP TABLE if exists USERS cascade;
9379
+  (2.7ms) DROP TABLE if exists POSTS cascade;
9380
+  (2.0ms) DROP TABLE if exists USER_POSTS cascade;
9381
+  (2.6ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9382
+  (7.5ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9383
+  (23.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
9384
+  (20.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9385
+  (1.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9386
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9387
+ Migrating to ChangeTheModelPostAtTime1488993262 (20170308171425)
9388
+  (0.2ms) BEGIN
9389
+  (24.3ms) CREATE TABLE "posts" ("id" serial primary key)
9390
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171425"]]
9391
+  (6.4ms) COMMIT
9392
+ 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]]
9393
+  (0.2ms) BEGIN
9394
+ 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-08 17:14:28 UTC], ["updated_at", 2017-03-08 17:14:28 UTC]]
9395
+  (0.5ms) COMMIT
9396
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
9397
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9398
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9399
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9400
+ Migrating to ChangeTheModelPostAtTime1488993268 (20170308171431)
9401
+  (0.2ms) BEGIN
9402
+  (6.0ms) ALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'
9403
+  (1.2ms) CREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")
9404
+  (2.8ms) ALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL
9405
+  (0.4ms) ALTER TABLE "posts" ADD "content" text
9406
+  (0.3ms) ALTER TABLE "posts" ADD "title" character varying
9407
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171431"]]
9408
+  (1.5ms) COMMIT
9409
+ 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]]
9410
+  (0.2ms) BEGIN
9411
+  (0.2ms) COMMIT
9412
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9413
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9414
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9415
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9416
+ Migrating to ChangeTheModelPostAtTime1488993273 (20170308171436)
9417
+  (0.2ms) BEGIN
9418
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171436"]]
9419
+  (0.4ms) COMMIT
9420
+ 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]]
9421
+  (0.2ms) BEGIN
9422
+  (0.2ms) COMMIT
9423
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9424
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9425
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9426
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9427
+ Migrating to ChangeTheModelPostAtTime1488993279 (20170308171442)
9428
+  (0.3ms) BEGIN
9429
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"
9430
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171442"]]
9431
+  (8.3ms) COMMIT
9432
+ 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]]
9433
+  (0.3ms) BEGIN
9434
+  (0.3ms) COMMIT
9435
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9436
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9437
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9438
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9439
+ Migrating to ChangeTheModelPostAtTime1488993285 (20170308171448)
9440
+  (0.3ms) BEGIN
9441
+  (0.5ms) ALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"
9442
+  (0.5ms) ALTER TABLE "posts" DROP "title"
9443
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171448"]]
9444
+  (0.5ms) COMMIT
9445
+ 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]]
9446
+  (0.2ms) BEGIN
9447
+  (0.2ms) COMMIT
9448
+  (0.6ms) SELECT pg_advisory_unlock(268089350951355045)
9449
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9450
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
9451
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9452
+ Migrating to ChangeTheModelPostAtTime1488993291 (20170308171454)
9453
+  (0.2ms) BEGIN
9454
+  (2.0ms) CREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")
9455
+  (0.4ms) ALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying
9456
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171454"]]
9457
+  (0.6ms) COMMIT
9458
+ 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]]
9459
+  (0.7ms) BEGIN
9460
+  (0.2ms) COMMIT
9461
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
9462
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9463
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9464
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9465
+ Migrating to ChangeTheModelPostAtTime1488993297 (20170308171500)
9466
+  (0.3ms) BEGIN
9467
+  (10.3ms) CREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")
9468
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171500"]]
9469
+  (0.5ms) COMMIT
9470
+ 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]]
9471
+  (0.3ms) BEGIN
9472
+  (0.3ms) COMMIT
9473
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9474
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9475
+  (0.6ms) SELECT pg_try_advisory_lock(268089350951355045);
9476
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9477
+ Migrating to ChangeTheModelPostAtTime1488993303 (20170308171506)
9478
+  (0.3ms) BEGIN
9479
+  (0.7ms) DROP INDEX "index_posts_on_views_by_users"
9480
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171506"]]
9481
+  (10.2ms) COMMIT
9482
+ 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]]
9483
+  (0.3ms) BEGIN
9484
+  (0.1ms) COMMIT
9485
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
9486
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9487
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9488
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9489
+ Migrating to ChangeTheModelPostAtTime1488993309 (20170308171513)
9490
+  (0.3ms) BEGIN
9491
+  (9.7ms) DROP TABLE "posts" CASCADE
9492
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171513"]]
9493
+  (1.6ms) COMMIT
9494
+ 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]]
9495
+  (0.3ms) BEGIN
9496
+  (0.2ms) COMMIT
9497
+  (1.2ms) SELECT pg_advisory_unlock(268089350951355045)
9498
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9499
+  (8.2ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9500
+  (7.2ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9501
+  (12.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
9502
+  (3.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9503
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9504
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9505
+ Migrating to CreatePosts (20170308171519)
9506
+  (0.3ms) BEGIN
9507
+  (5.2ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9508
+  (1.2ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
9509
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171519"]]
9510
+  (0.5ms) COMMIT
9511
+ 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]]
9512
+  (0.3ms) BEGIN
9513
+ 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-08 17:15:22 UTC], ["updated_at", 2017-03-08 17:15:22 UTC]]
9514
+  (0.5ms) COMMIT
9515
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9516
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9517
+  (0.2ms) SELECT pg_try_advisory_lock(268089350951355045);
9518
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9519
+ 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]]
9520
+  (0.3ms) BEGIN
9521
+  (0.2ms) COMMIT
9522
+  (0.2ms) SELECT pg_advisory_unlock(268089350951355045)
9523
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
9524
+  (0.3ms) SELECT pg_try_advisory_lock(268089350951355045);
9525
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9526
+ Migrating to CreateUsers (20170308171529)
9527
+  (0.3ms) BEGIN
9528
+  (13.3ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9529
+  (1.2ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9530
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171529"]]
9531
+  (0.7ms) COMMIT
9532
+ 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]]
9533
+  (0.2ms) BEGIN
9534
+  (0.2ms) COMMIT
9535
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9536
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9537
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
9538
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9539
+ 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]]
9540
+  (0.2ms) BEGIN
9541
+  (0.2ms) COMMIT
9542
+  (0.4ms) SELECT pg_advisory_unlock(268089350951355045)
9543
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9544
+  (7.8ms) DROP TABLE if exists USERS cascade;
9545
+  (7.5ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9546
+  (7.5ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9547
+  (2.2ms) DROP TABLE if exists POSTS cascade;
9548
+  (11.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
9549
+  (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)
9550
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
9551
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9552
+ Migrating to CreatePosts (20170308171538)
9553
+  (0.2ms) BEGIN
9554
+  (3.8ms) CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9555
+  (1.1ms) CREATE INDEX "index_posts_on_title" ON "posts" ("title")
9556
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171538"]]
9557
+  (0.4ms) COMMIT
9558
+ Migrating to CreateUsers (20170308171541)
9559
+  (0.4ms) BEGIN
9560
+  (2.6ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
9561
+  (1.0ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9562
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171541"]]
9563
+  (0.5ms) COMMIT
9564
+ Migrating to CreateUserPosts (20170308171544)
9565
+  (0.5ms) BEGIN
9566
+  (11.9ms) 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"
9567
+ FOREIGN KEY ("user_id")
9568
+ REFERENCES "users" ("id")
9569
+ , CONSTRAINT "fk_rails_38a7c4b06f"
9570
+ FOREIGN KEY ("post_id")
9571
+ REFERENCES "posts" ("id")
9572
+ )
9573
+  (1.1ms) CREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")
9574
+  (1.3ms) CREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")
9575
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170308171544"]]
9576
+  (0.5ms) COMMIT
9577
+ 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]]
9578
+  (0.2ms) BEGIN
9579
+ 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-08 17:15:47 UTC], ["updated_at", 2017-03-08 17:15:47 UTC]]
9580
+  (17.4ms) COMMIT
9581
+  (0.5ms) SELECT pg_advisory_unlock(268089350951355045)
9582
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9583
+  (0.4ms) SELECT pg_try_advisory_lock(268089350951355045);
9584
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9585
+ 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]]
9586
+  (0.2ms) BEGIN
9587
+  (0.2ms) COMMIT
9588
+  (0.3ms) SELECT pg_advisory_unlock(268089350951355045)
9589
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9590
+  (9.0ms) DROP TABLE if exists SCHEMA_MIGRATIONS cascade;
9591
+  (1.9ms) DROP TABLE if exists AR_INTERNAL_METADATA cascade;
9592
+  (2.9ms) DROP TABLE if exists USERS cascade;
9593
+  (2.2ms) DROP TABLE if exists POSTS cascade;
9594
+  (4.4ms) DROP TABLE if exists USER_POSTS cascade;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localtower
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Le Nouaille