localtower 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/localtower/generators/migration.rb +1 -1
- data/lib/localtower/generators/model.rb +1 -1
- data/lib/localtower/generators/relation.rb +1 -1
- data/lib/localtower/version.rb +1 -1
- data/spec/dummy/log/development.log +26 -0
- data/spec/dummy/log/localtower.log +420 -0
- data/spec/dummy/log/test.log +428 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cafeea60c6234407f4d8db12991b29e3b62154f
|
|
4
|
+
data.tar.gz: 03b295bd34a357031baedcf186b653f450a71b5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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?
|
data/lib/localtower/version.rb
CHANGED
|
@@ -22922,3 +22922,29 @@ Started GET "/light-bootstrap-dashboard-master/assets/js/jquery-1.10.2.js" for 1
|
|
|
22922
22922
|
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
22923
22923
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
22924
22924
|
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
22925
|
+
[1m[35m (211.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "localtower_dummy"[0m
|
|
22926
|
+
[1m[35m (631.7ms)[0m [1m[35mCREATE DATABASE "localtower_dummy" ENCODING = 'utf8'[0m
|
|
22927
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
22928
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
|
22929
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
22930
|
+
[1m[35m (20.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
22931
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
22932
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
22933
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-03-08 17:11:38 UTC], ["updated_at", 2017-03-08 17:11:38 UTC]]
|
|
22934
|
+
[1m[35m (6.6ms)[0m [1m[35mCOMMIT[0m
|
|
22935
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
22936
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
22937
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
22938
|
+
[1m[35m (204.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "localtower_dummy"[0m
|
|
22939
|
+
[1m[35m (573.0ms)[0m [1m[35mCREATE DATABASE "localtower_dummy" ENCODING = 'utf8'[0m
|
|
22940
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
22941
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
|
22942
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
|
22943
|
+
[1m[35m (19.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
22944
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
22945
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
22946
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", 2017-03-08 17:14:19 UTC], ["updated_at", 2017-03-08 17:14:19 UTC]]
|
|
22947
|
+
[1m[35m (6.3ms)[0m [1m[35mCOMMIT[0m
|
|
22948
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
22949
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
|
22950
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
@@ -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
|
data/spec/dummy/log/test.log
CHANGED
|
@@ -9164,3 +9164,431 @@ FOREIGN KEY ("post_id")
|
|
|
9164
9164
|
[1m[35m (2.3ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
|
9165
9165
|
[1m[35m (9.9ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9166
9166
|
[1m[35m (12.8ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9167
|
+
[1m[35m (10.4ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9168
|
+
[1m[35m (8.7ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9169
|
+
[1m[35m (24.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
9170
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9171
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9172
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9173
|
+
Migrating to ChangeTheModelPostAtTime1488993101 (20170308171144)
|
|
9174
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9175
|
+
[1m[35m (17.3ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
|
9176
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171144"]]
|
|
9177
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9178
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9179
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9180
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-03-08 17:11:47 UTC], ["updated_at", 2017-03-08 17:11:47 UTC]]
|
|
9181
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
9182
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9183
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9184
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9185
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9186
|
+
Migrating to ChangeTheModelPostAtTime1488993107 (20170308171150)
|
|
9187
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9188
|
+
[1m[35m (23.6ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
|
9189
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
|
9190
|
+
[1m[35m (3.4ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
|
9191
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
|
9192
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
|
9193
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171150"]]
|
|
9194
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
|
9195
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9196
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9197
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9198
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9199
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9200
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9201
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9202
|
+
Migrating to ChangeTheModelPostAtTime1488993113 (20170308171156)
|
|
9203
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9204
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171156"]]
|
|
9205
|
+
[1m[35m (7.8ms)[0m [1m[35mCOMMIT[0m
|
|
9206
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9207
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9208
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9209
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9210
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9211
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9212
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9213
|
+
Migrating to ChangeTheModelPostAtTime1488993119 (20170308171202)
|
|
9214
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9215
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
|
9216
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171202"]]
|
|
9217
|
+
[1m[35m (8.0ms)[0m [1m[35mCOMMIT[0m
|
|
9218
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9219
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9220
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
9221
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9222
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9223
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9224
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9225
|
+
Migrating to ChangeTheModelPostAtTime1488993125 (20170308171208)
|
|
9226
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9227
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
|
9228
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
|
9229
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171208"]]
|
|
9230
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
|
9231
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9232
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9233
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9234
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9235
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9236
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9237
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9238
|
+
Migrating to ChangeTheModelPostAtTime1488993131 (20170308171214)
|
|
9239
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9240
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
|
9241
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
|
9242
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171214"]]
|
|
9243
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
9244
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9245
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9246
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
9247
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9248
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9249
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9250
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9251
|
+
Migrating to ChangeTheModelPostAtTime1488993137 (20170308171220)
|
|
9252
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
|
9253
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
|
9254
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171220"]]
|
|
9255
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
|
9256
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9257
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9258
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9259
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9260
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9261
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9262
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9263
|
+
Migrating to ChangeTheModelPostAtTime1488993143 (20170308171227)
|
|
9264
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9265
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
|
9266
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171227"]]
|
|
9267
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
|
9268
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9269
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9270
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9271
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9272
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9273
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9274
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9275
|
+
Migrating to ChangeTheModelPostAtTime1488993150 (20170308171233)
|
|
9276
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9277
|
+
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
|
9278
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171233"]]
|
|
9279
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
|
9280
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9281
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9282
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9283
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9284
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9285
|
+
[1m[35m (7.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9286
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9287
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
9288
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9289
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9290
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9291
|
+
Migrating to CreatePosts (20170308171239)
|
|
9292
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9293
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9294
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
|
9295
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171239"]]
|
|
9296
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
|
9297
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9298
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9299
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-03-08 17:12:42 UTC], ["updated_at", 2017-03-08 17:12:42 UTC]]
|
|
9300
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9301
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9303
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9304
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9305
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9306
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9307
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9308
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9309
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9310
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9311
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9312
|
+
Migrating to CreateUsers (20170308171247)
|
|
9313
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9314
|
+
[1m[35m (13.8ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9315
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
|
9316
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171247"]]
|
|
9317
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
|
9318
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9319
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9320
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9321
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9322
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9323
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9324
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9325
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9326
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9327
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9328
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9329
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9330
|
+
[1m[35m (8.2ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
|
9331
|
+
[1m[35m (7.4ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9332
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9333
|
+
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
|
9334
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
9335
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9336
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9337
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9338
|
+
Migrating to CreatePosts (20170308171256)
|
|
9339
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9340
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9341
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
|
9342
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171256"]]
|
|
9343
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9344
|
+
Migrating to CreateUsers (20170308171259)
|
|
9345
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9346
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9347
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
|
9348
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171259"]]
|
|
9349
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
|
9350
|
+
Migrating to CreateUserPosts (20170308171301)
|
|
9351
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9352
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE "user_posts" ("id" serial primary key, "user_id" integer, "post_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "fk_rails_6c6a346128"
|
|
9353
|
+
FOREIGN KEY ("user_id")
|
|
9354
|
+
REFERENCES "users" ("id")
|
|
9355
|
+
, CONSTRAINT "fk_rails_38a7c4b06f"
|
|
9356
|
+
FOREIGN KEY ("post_id")
|
|
9357
|
+
REFERENCES "posts" ("id")
|
|
9358
|
+
)[0m
|
|
9359
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
|
9360
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
|
9361
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171301"]]
|
|
9362
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9363
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9364
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9365
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-03-08 17:13:04 UTC], ["updated_at", 2017-03-08 17:13:04 UTC]]
|
|
9366
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
9367
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9368
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9369
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9370
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9371
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9372
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9373
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9374
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9375
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9376
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9377
|
+
[1m[35m (6.9ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9378
|
+
[1m[35m (8.8ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
|
9379
|
+
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
|
9380
|
+
[1m[35m (2.0ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
|
9381
|
+
[1m[35m (2.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9382
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9383
|
+
[1m[35m (23.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
9384
|
+
[1m[35m (20.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9385
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9386
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9387
|
+
Migrating to ChangeTheModelPostAtTime1488993262 (20170308171425)
|
|
9388
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9389
|
+
[1m[35m (24.3ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key)[0m
|
|
9390
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171425"]]
|
|
9391
|
+
[1m[35m (6.4ms)[0m [1m[35mCOMMIT[0m
|
|
9392
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9393
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9394
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-03-08 17:14:28 UTC], ["updated_at", 2017-03-08 17:14:28 UTC]]
|
|
9395
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9396
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9397
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9398
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9399
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9400
|
+
Migrating to ChangeTheModelPostAtTime1488993268 (20170308171431)
|
|
9401
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9402
|
+
[1m[35m (6.0ms)[0m [1m[35mALTER TABLE "posts" ADD "tags" text[] DEFAULT '{}'[0m
|
|
9403
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_tags" ON "posts" USING gin ("tags")[0m
|
|
9404
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "posts" ADD "views" integer DEFAULT 0 NOT NULL[0m
|
|
9405
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" ADD "content" text[0m
|
|
9406
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "posts" ADD "title" character varying[0m
|
|
9407
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171431"]]
|
|
9408
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
|
9409
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9410
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9411
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9412
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9413
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9414
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9415
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9416
|
+
Migrating to ChangeTheModelPostAtTime1488993273 (20170308171436)
|
|
9417
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9418
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171436"]]
|
|
9419
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
9420
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9421
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9422
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9423
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9424
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9425
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9426
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9427
|
+
Migrating to ChangeTheModelPostAtTime1488993279 (20170308171442)
|
|
9428
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9429
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "content" TO "content_new"[0m
|
|
9430
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171442"]]
|
|
9431
|
+
[1m[35m (8.3ms)[0m [1m[35mCOMMIT[0m
|
|
9432
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9433
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9434
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
9435
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9436
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9437
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9438
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9439
|
+
Migrating to ChangeTheModelPostAtTime1488993285 (20170308171448)
|
|
9440
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9441
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" RENAME COLUMN "views" TO "views_by_users"[0m
|
|
9442
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "posts" DROP "title"[0m
|
|
9443
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171448"]]
|
|
9444
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9445
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9446
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9447
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9448
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9449
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9450
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9451
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9452
|
+
Migrating to ChangeTheModelPostAtTime1488993291 (20170308171454)
|
|
9453
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9454
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_posts_on_views_by_users" ON "posts" ("views_by_users")[0m
|
|
9455
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "posts" ALTER COLUMN "content_new" TYPE character varying[0m
|
|
9456
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171454"]]
|
|
9457
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
|
9458
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9459
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
|
9460
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9461
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9462
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9463
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9464
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9465
|
+
Migrating to ChangeTheModelPostAtTime1488993297 (20170308171500)
|
|
9466
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9467
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE INDEX "index_posts_on_content_new" ON "posts" ("content_new")[0m
|
|
9468
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171500"]]
|
|
9469
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9470
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9471
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9472
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
9473
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9474
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9475
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9476
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9477
|
+
Migrating to ChangeTheModelPostAtTime1488993303 (20170308171506)
|
|
9478
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9479
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP INDEX "index_posts_on_views_by_users"[0m
|
|
9480
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171506"]]
|
|
9481
|
+
[1m[35m (10.2ms)[0m [1m[35mCOMMIT[0m
|
|
9482
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9483
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9484
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
9485
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9486
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9487
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9488
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9489
|
+
Migrating to ChangeTheModelPostAtTime1488993309 (20170308171513)
|
|
9490
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9491
|
+
[1m[35m (9.7ms)[0m [1m[35mDROP TABLE "posts" CASCADE[0m
|
|
9492
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171513"]]
|
|
9493
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
|
9494
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9495
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9496
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9497
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9498
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9499
|
+
[1m[35m (8.2ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9500
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9501
|
+
[1m[35m (12.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
9502
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9503
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9504
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9505
|
+
Migrating to CreatePosts (20170308171519)
|
|
9506
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9507
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9508
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
|
9509
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171519"]]
|
|
9510
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9511
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9512
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9513
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-03-08 17:15:22 UTC], ["updated_at", 2017-03-08 17:15:22 UTC]]
|
|
9514
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9515
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9516
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9517
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9518
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9519
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9520
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9521
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9522
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9523
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9524
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9525
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9526
|
+
Migrating to CreateUsers (20170308171529)
|
|
9527
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
|
9528
|
+
[1m[35m (13.3ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9529
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
|
9530
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171529"]]
|
|
9531
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
|
9532
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9533
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9534
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9535
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9536
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9537
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9538
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9539
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9540
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9541
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9542
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9543
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9544
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
|
9545
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9546
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9547
|
+
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
|
9548
|
+
[1m[35m (11.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
|
9549
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9550
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9551
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9552
|
+
Migrating to CreatePosts (20170308171538)
|
|
9553
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9554
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9555
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
|
9556
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171538"]]
|
|
9557
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
9558
|
+
Migrating to CreateUsers (20170308171541)
|
|
9559
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
|
9560
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
9561
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
|
9562
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171541"]]
|
|
9563
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9564
|
+
Migrating to CreateUserPosts (20170308171544)
|
|
9565
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
|
9566
|
+
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE "user_posts" ("id" serial primary key, "user_id" integer, "post_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "fk_rails_6c6a346128"
|
|
9567
|
+
FOREIGN KEY ("user_id")
|
|
9568
|
+
REFERENCES "users" ("id")
|
|
9569
|
+
, CONSTRAINT "fk_rails_38a7c4b06f"
|
|
9570
|
+
FOREIGN KEY ("post_id")
|
|
9571
|
+
REFERENCES "posts" ("id")
|
|
9572
|
+
)[0m
|
|
9573
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
|
9574
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
|
9575
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170308171544"]]
|
|
9576
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
9577
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9578
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9579
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-03-08 17:15:47 UTC], ["updated_at", 2017-03-08 17:15:47 UTC]]
|
|
9580
|
+
[1m[35m (17.4ms)[0m [1m[35mCOMMIT[0m
|
|
9581
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9582
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9583
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
|
9584
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9585
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
|
9586
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
9587
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
9588
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
|
9589
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
9590
|
+
[1m[35m (9.0ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
|
9591
|
+
[1m[35m (1.9ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
|
9592
|
+
[1m[35m (2.9ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
|
9593
|
+
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
|
9594
|
+
[1m[35m (4.4ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|