localtower 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/views/localtower/pages/logs.html.erb +1 -1
- data/lib/localtower/plugins/capture.rb +17 -13
- data/lib/localtower/version.rb +1 -1
- data/spec/dummy/Gemfile +1 -1
- data/spec/dummy/Gemfile.lock +41 -42
- data/spec/dummy/log/development.log +26 -0
- data/spec/dummy/log/localtower.log +227 -0
- data/spec/dummy/log/test.log +110 -0
- metadata +27 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb98edd013a8dd3adffd7ec30785cf4e6371a788
|
4
|
+
data.tar.gz: '093b0a9efd88f6223b95c22a513217198138df2d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11fbdc9b9580686adbd0c8c78a3904a753479fb4110ea0e04e1784ce9fcfa240a3d8063769c6da37a4edfc042d8675a9b52f5a0bea42ac91a806ce25a6a6c68f
|
7
|
+
data.tar.gz: 52ecc1ff573680f0a9879c13b2b5539b0aef4a214b44a2106d385efb83e7196fcc7059756c3468ffd96378bc79eb872f96a2c94d71594b2936e31f6cee78ef0b
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ bundle install
|
|
42
42
|
Add to your `config/routes.rb`:
|
43
43
|
```ruby
|
44
44
|
MyApp::Application.routes.draw do
|
45
|
-
if Rails.env.development?
|
45
|
+
if Rails.env.development? and defined?(Localtower)
|
46
46
|
mount Localtower::Engine, at: "localtower"
|
47
47
|
end
|
48
48
|
|
@@ -105,6 +105,6 @@ Thanks for reporting issues, I'll do my best.
|
|
105
105
|
|
106
106
|
## Deploy
|
107
107
|
|
108
|
-
rm *.gem | gem build localtower.gemspec | gem push localtower
|
108
|
+
rm *.gem | gem build localtower.gemspec | gem push localtower-*.gem
|
109
109
|
|
110
110
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Localtower
|
2
2
|
module Plugins
|
3
3
|
class Capture
|
4
|
-
LOG_FILE = "#{Rails.root}/log/localtower_capture.log"
|
4
|
+
LOG_FILE = lambda { "#{Rails.root}/log/localtower_capture.log" }
|
5
5
|
EXCLUDE_INSTANCE_VARIABLES = [
|
6
6
|
"@_action_has_layout",
|
7
7
|
"@_routes",
|
@@ -42,13 +42,13 @@ module Localtower
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def initialize(context = nil, context_binding = nil)
|
45
|
-
@context = context
|
46
|
-
@context_binding = context_binding
|
45
|
+
@context = context # self
|
46
|
+
@context_binding = context_binding # binding
|
47
47
|
end
|
48
48
|
|
49
49
|
def logs
|
50
|
-
if File.exist?(LOG_FILE)
|
51
|
-
content = File.open(LOG_FILE).read
|
50
|
+
if File.exist?(LOG_FILE.call)
|
51
|
+
content = File.open(LOG_FILE.call).read
|
52
52
|
else
|
53
53
|
content = nil
|
54
54
|
end
|
@@ -59,7 +59,7 @@ module Localtower
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def my_logger
|
62
|
-
@@my_logger ||= Logger.new(LOG_FILE)
|
62
|
+
@@my_logger ||= Logger.new(LOG_FILE.call)
|
63
63
|
@@my_logger.formatter = proc do |severity, datetime, progname, msg|
|
64
64
|
"#{msg}\n"
|
65
65
|
end
|
@@ -146,19 +146,23 @@ module Localtower
|
|
146
146
|
|
147
147
|
def init
|
148
148
|
# Clear the logs
|
149
|
-
|
150
|
-
File.open(LOG_FILE, 'w') { |f| f.write("") }
|
151
|
-
end
|
152
|
-
|
153
|
-
self
|
149
|
+
File.open(LOG_FILE.call, 'w') { |f| f.write("{}") }
|
154
150
|
end
|
155
151
|
|
156
152
|
def save
|
157
153
|
return nil if Rails.env.production?
|
158
154
|
|
159
155
|
self.init
|
160
|
-
|
161
|
-
|
156
|
+
|
157
|
+
data = self.values
|
158
|
+
data.each do |value|
|
159
|
+
puts value
|
160
|
+
end
|
161
|
+
|
162
|
+
json = data.to_json
|
163
|
+
|
164
|
+
File.open(LOG_FILE.call, 'w') { |f| f.write(json) }
|
165
|
+
# log "#{json}\n"
|
162
166
|
end
|
163
167
|
|
164
168
|
def log(str)
|
data/lib/localtower/version.rb
CHANGED
data/spec/dummy/Gemfile
CHANGED
data/spec/dummy/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/damln/Work/localtower
|
3
3
|
specs:
|
4
|
-
localtower (0.2.
|
4
|
+
localtower (0.2.2)
|
5
5
|
active_link_to
|
6
6
|
pg
|
7
|
-
rails (
|
7
|
+
rails (~> 5.0.0)
|
8
8
|
rubyzip
|
9
9
|
sqlite3
|
10
10
|
thor
|
@@ -12,49 +12,49 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
actioncable (5.
|
16
|
-
actionpack (= 5.
|
17
|
-
nio4r (
|
15
|
+
actioncable (5.0.4)
|
16
|
+
actionpack (= 5.0.4)
|
17
|
+
nio4r (>= 1.2, < 3.0)
|
18
18
|
websocket-driver (~> 0.6.1)
|
19
|
-
actionmailer (5.
|
20
|
-
actionpack (= 5.
|
21
|
-
actionview (= 5.
|
22
|
-
activejob (= 5.
|
19
|
+
actionmailer (5.0.4)
|
20
|
+
actionpack (= 5.0.4)
|
21
|
+
actionview (= 5.0.4)
|
22
|
+
activejob (= 5.0.4)
|
23
23
|
mail (~> 2.5, >= 2.5.4)
|
24
24
|
rails-dom-testing (~> 2.0)
|
25
|
-
actionpack (5.
|
26
|
-
actionview (= 5.
|
27
|
-
activesupport (= 5.
|
25
|
+
actionpack (5.0.4)
|
26
|
+
actionview (= 5.0.4)
|
27
|
+
activesupport (= 5.0.4)
|
28
28
|
rack (~> 2.0)
|
29
29
|
rack-test (~> 0.6.3)
|
30
30
|
rails-dom-testing (~> 2.0)
|
31
31
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
32
|
-
actionview (5.
|
33
|
-
activesupport (= 5.
|
32
|
+
actionview (5.0.4)
|
33
|
+
activesupport (= 5.0.4)
|
34
34
|
builder (~> 3.1)
|
35
|
-
|
35
|
+
erubis (~> 2.7.0)
|
36
36
|
rails-dom-testing (~> 2.0)
|
37
37
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
38
38
|
active_link_to (1.0.4)
|
39
39
|
actionpack
|
40
40
|
addressable
|
41
|
-
activejob (5.
|
42
|
-
activesupport (= 5.
|
41
|
+
activejob (5.0.4)
|
42
|
+
activesupport (= 5.0.4)
|
43
43
|
globalid (>= 0.3.6)
|
44
|
-
activemodel (5.
|
45
|
-
activesupport (= 5.
|
46
|
-
activerecord (5.
|
47
|
-
activemodel (= 5.
|
48
|
-
activesupport (= 5.
|
49
|
-
arel (~>
|
50
|
-
activesupport (5.
|
44
|
+
activemodel (5.0.4)
|
45
|
+
activesupport (= 5.0.4)
|
46
|
+
activerecord (5.0.4)
|
47
|
+
activemodel (= 5.0.4)
|
48
|
+
activesupport (= 5.0.4)
|
49
|
+
arel (~> 7.0)
|
50
|
+
activesupport (5.0.4)
|
51
51
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
52
52
|
i18n (~> 0.7)
|
53
53
|
minitest (~> 5.1)
|
54
54
|
tzinfo (~> 1.1)
|
55
55
|
addressable (2.5.1)
|
56
56
|
public_suffix (~> 2.0, >= 2.0.2)
|
57
|
-
arel (
|
57
|
+
arel (7.1.4)
|
58
58
|
better_errors (2.1.1)
|
59
59
|
coderay (>= 1.0.0)
|
60
60
|
erubis (>= 2.6.6)
|
@@ -76,7 +76,6 @@ GEM
|
|
76
76
|
dotenv-rails (2.2.1)
|
77
77
|
dotenv (= 2.2.1)
|
78
78
|
railties (>= 3.2, < 5.2)
|
79
|
-
erubi (1.6.1)
|
80
79
|
erubis (2.7.0)
|
81
80
|
execjs (2.7.0)
|
82
81
|
ffi (1.9.18)
|
@@ -113,31 +112,31 @@ GEM
|
|
113
112
|
rack (2.0.3)
|
114
113
|
rack-test (0.6.3)
|
115
114
|
rack (>= 1.0)
|
116
|
-
rails (5.
|
117
|
-
actioncable (= 5.
|
118
|
-
actionmailer (= 5.
|
119
|
-
actionpack (= 5.
|
120
|
-
actionview (= 5.
|
121
|
-
activejob (= 5.
|
122
|
-
activemodel (= 5.
|
123
|
-
activerecord (= 5.
|
124
|
-
activesupport (= 5.
|
115
|
+
rails (5.0.4)
|
116
|
+
actioncable (= 5.0.4)
|
117
|
+
actionmailer (= 5.0.4)
|
118
|
+
actionpack (= 5.0.4)
|
119
|
+
actionview (= 5.0.4)
|
120
|
+
activejob (= 5.0.4)
|
121
|
+
activemodel (= 5.0.4)
|
122
|
+
activerecord (= 5.0.4)
|
123
|
+
activesupport (= 5.0.4)
|
125
124
|
bundler (>= 1.3.0, < 2.0)
|
126
|
-
railties (= 5.
|
125
|
+
railties (= 5.0.4)
|
127
126
|
sprockets-rails (>= 2.0.0)
|
128
127
|
rails-dom-testing (2.0.3)
|
129
128
|
activesupport (>= 4.2.0)
|
130
129
|
nokogiri (>= 1.6)
|
131
130
|
rails-html-sanitizer (1.0.3)
|
132
131
|
loofah (~> 2.0)
|
133
|
-
railties (5.
|
134
|
-
actionpack (= 5.
|
135
|
-
activesupport (= 5.
|
132
|
+
railties (5.0.4)
|
133
|
+
actionpack (= 5.0.4)
|
134
|
+
activesupport (= 5.0.4)
|
136
135
|
method_source
|
137
136
|
rake (>= 0.8.7)
|
138
137
|
thor (>= 0.18.1, < 2.0)
|
139
138
|
rake (12.0.0)
|
140
|
-
rb-fsevent (0.10.
|
139
|
+
rb-fsevent (0.10.2)
|
141
140
|
rb-inotify (0.9.10)
|
142
141
|
ffi (>= 0.5.0, < 2)
|
143
142
|
require_reloader (0.2.1)
|
@@ -186,7 +185,7 @@ DEPENDENCIES
|
|
186
185
|
pg
|
187
186
|
pry
|
188
187
|
puma
|
189
|
-
rails (
|
188
|
+
rails (~> 5.0.0)
|
190
189
|
require_reloader
|
191
190
|
sass-rails (~> 5.0)
|
192
191
|
turbolinks (~> 5)
|
@@ -194,4 +193,4 @@ DEPENDENCIES
|
|
194
193
|
uglifier (>= 1.3.0)
|
195
194
|
|
196
195
|
BUNDLED WITH
|
197
|
-
1.
|
196
|
+
1.15.1
|
@@ -130,3 +130,29 @@ DEPRECATION WARNING: ActiveSupport.halt_callback_chains_on_return_false= is depr
|
|
130
130
|
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
131
131
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
132
132
|
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
133
|
+
[1m[35m (194.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "localtower_dummy"[0m
|
134
|
+
[1m[35m (667.3ms)[0m [1m[35mCREATE DATABASE "localtower_dummy" ENCODING = 'utf8'[0m
|
135
|
+
[1m[35m (15.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
136
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
137
|
+
[1m[35m (5.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
138
|
+
[1m[35m (24.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
|
139
|
+
[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]]
|
140
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
141
|
+
[1m[35mSQL (7.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-07-01 23:18:31.345515"], ["updated_at", "2017-07-01 23:18:31.345515"]]
|
142
|
+
[1m[35m (11.8ms)[0m [1m[35mCOMMIT[0m
|
143
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
144
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
145
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
146
|
+
[1m[35m (193.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "localtower_dummy"[0m
|
147
|
+
[1m[35m (601.0ms)[0m [1m[35mCREATE DATABASE "localtower_dummy" ENCODING = 'utf8'[0m
|
148
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
149
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
150
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (0)[0m
|
151
|
+
[1m[35m (19.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
|
152
|
+
[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]]
|
153
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
154
|
+
[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-07-01 23:20:23.679002"], ["updated_at", "2017-07-01 23:20:23.679002"]]
|
155
|
+
[1m[35m (6.4ms)[0m [1m[35mCOMMIT[0m
|
156
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
157
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
158
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
@@ -2538,3 +2538,230 @@
|
|
2538
2538
|
|
2539
2539
|
|
2540
2540
|
[2017-06-29 23:25:29 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate in 2.596988 sec
|
2541
|
+
[2017-07-02 01:18:33 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951113
|
2542
|
+
[2017-07-02 01:18:35 +0200] - invoke active_record
|
2543
|
+
create db/migrate/20170701231835_change_the_model_post_at_time1498951113.rb
|
2544
|
+
|
2545
|
+
[2017-07-02 01:18:35 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951113 in 1.899301 sec
|
2546
|
+
[2017-07-02 01:18:35 +0200] - DOING...: bundle exec rake db:migrate
|
2547
|
+
[2017-07-02 01:18:37 +0200] - No Pry.
|
2548
|
+
|
2549
|
+
[2017-07-02 01:18:37 +0200] - DONE: bundle exec rake db:migrate in 1.457426 sec
|
2550
|
+
[2017-07-02 01:18:37 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelUserAtTime1498951117
|
2551
|
+
[2017-07-02 01:18:37 +0200] -
|
2552
|
+
[2017-07-02 01:18:37 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelUserAtTime1498951117 in 0.13282 sec
|
2553
|
+
[2017-07-02 01:18:37 +0200] - DOING...: bundle exec rake db:migrate
|
2554
|
+
[2017-07-02 01:18:38 +0200] - No Pry.
|
2555
|
+
|
2556
|
+
[2017-07-02 01:18:38 +0200] - DONE: bundle exec rake db:migrate in 1.381497 sec
|
2557
|
+
[2017-07-02 01:20:26 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951226
|
2558
|
+
[2017-07-02 01:20:28 +0200] - invoke active_record
|
2559
|
+
create db/migrate/20170701232028_change_the_model_post_at_time1498951226.rb
|
2560
|
+
|
2561
|
+
[2017-07-02 01:20:28 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951226 in 2.125988 sec
|
2562
|
+
[2017-07-02 01:20:28 +0200] - DOING...: bundle exec rake db:migrate
|
2563
|
+
[2017-07-02 01:20:29 +0200] - No Pry.
|
2564
|
+
|
2565
|
+
[2017-07-02 01:20:29 +0200] - DONE: bundle exec rake db:migrate in 1.461328 sec
|
2566
|
+
[2017-07-02 01:20:29 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelUserAtTime1498951229
|
2567
|
+
[2017-07-02 01:20:31 +0200] - invoke active_record
|
2568
|
+
create db/migrate/20170701232031_change_the_model_user_at_time1498951229.rb
|
2569
|
+
|
2570
|
+
[2017-07-02 01:20:31 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelUserAtTime1498951229 in 2.107639 sec
|
2571
|
+
[2017-07-02 01:20:31 +0200] - DOING...: bundle exec rake db:migrate
|
2572
|
+
[2017-07-02 01:20:33 +0200] - No Pry.
|
2573
|
+
|
2574
|
+
[2017-07-02 01:20:33 +0200] - DONE: bundle exec rake db:migrate in 1.548562 sec
|
2575
|
+
[2017-07-02 01:20:33 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951233
|
2576
|
+
[2017-07-02 01:20:35 +0200] - invoke active_record
|
2577
|
+
create db/migrate/20170701232035_change_the_model_post_at_time1498951233.rb
|
2578
|
+
|
2579
|
+
[2017-07-02 01:20:35 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951233 in 2.014036 sec
|
2580
|
+
[2017-07-02 01:20:35 +0200] - DOING...: bundle exec rake db:migrate
|
2581
|
+
[2017-07-02 01:20:36 +0200] - No Pry.
|
2582
|
+
|
2583
|
+
[2017-07-02 01:20:36 +0200] - DONE: bundle exec rake db:migrate in 1.310354 sec
|
2584
|
+
[2017-07-02 01:20:36 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951236
|
2585
|
+
[2017-07-02 01:20:38 +0200] - invoke active_record
|
2586
|
+
create db/migrate/20170701232038_change_the_model_post_at_time1498951236.rb
|
2587
|
+
|
2588
|
+
[2017-07-02 01:20:38 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951236 in 1.93781 sec
|
2589
|
+
[2017-07-02 01:20:38 +0200] - DOING...: bundle exec rake db:migrate
|
2590
|
+
[2017-07-02 01:20:40 +0200] - No Pry.
|
2591
|
+
|
2592
|
+
[2017-07-02 01:20:40 +0200] - DONE: bundle exec rake db:migrate in 1.393256 sec
|
2593
|
+
[2017-07-02 01:20:40 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951240
|
2594
|
+
[2017-07-02 01:20:42 +0200] - invoke active_record
|
2595
|
+
create db/migrate/20170701232042_change_the_model_post_at_time1498951240.rb
|
2596
|
+
|
2597
|
+
[2017-07-02 01:20:42 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951240 in 2.048824 sec
|
2598
|
+
[2017-07-02 01:20:42 +0200] - DOING...: bundle exec rake db:migrate
|
2599
|
+
[2017-07-02 01:20:43 +0200] - No Pry.
|
2600
|
+
|
2601
|
+
[2017-07-02 01:20:43 +0200] - DONE: bundle exec rake db:migrate in 1.338645 sec
|
2602
|
+
[2017-07-02 01:20:43 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951243
|
2603
|
+
[2017-07-02 01:20:45 +0200] - invoke active_record
|
2604
|
+
create db/migrate/20170701232045_change_the_model_post_at_time1498951243.rb
|
2605
|
+
|
2606
|
+
[2017-07-02 01:20:45 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951243 in 1.891342 sec
|
2607
|
+
[2017-07-02 01:20:45 +0200] - DOING...: bundle exec rake db:migrate
|
2608
|
+
[2017-07-02 01:20:46 +0200] - No Pry.
|
2609
|
+
|
2610
|
+
[2017-07-02 01:20:46 +0200] - DONE: bundle exec rake db:migrate in 1.405274 sec
|
2611
|
+
[2017-07-02 01:20:46 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951246
|
2612
|
+
[2017-07-02 01:20:48 +0200] - invoke active_record
|
2613
|
+
create db/migrate/20170701232048_change_the_model_post_at_time1498951246.rb
|
2614
|
+
|
2615
|
+
[2017-07-02 01:20:48 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951246 in 2.163143 sec
|
2616
|
+
[2017-07-02 01:20:48 +0200] - DOING...: bundle exec rake db:migrate
|
2617
|
+
[2017-07-02 01:20:50 +0200] - No Pry.
|
2618
|
+
|
2619
|
+
[2017-07-02 01:20:50 +0200] - DONE: bundle exec rake db:migrate in 1.620148 sec
|
2620
|
+
[2017-07-02 01:20:50 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951250
|
2621
|
+
[2017-07-02 01:20:52 +0200] - invoke active_record
|
2622
|
+
create db/migrate/20170701232052_change_the_model_post_at_time1498951250.rb
|
2623
|
+
|
2624
|
+
[2017-07-02 01:20:52 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951250 in 2.194204 sec
|
2625
|
+
[2017-07-02 01:20:52 +0200] - DOING...: bundle exec rake db:migrate
|
2626
|
+
[2017-07-02 01:20:54 +0200] - No Pry.
|
2627
|
+
|
2628
|
+
[2017-07-02 01:20:54 +0200] - DONE: bundle exec rake db:migrate in 1.348928 sec
|
2629
|
+
[2017-07-02 01:20:54 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951254
|
2630
|
+
[2017-07-02 01:20:56 +0200] - invoke active_record
|
2631
|
+
create db/migrate/20170701232056_change_the_model_post_at_time1498951254.rb
|
2632
|
+
|
2633
|
+
[2017-07-02 01:20:56 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951254 in 1.86391 sec
|
2634
|
+
[2017-07-02 01:20:56 +0200] - DOING...: bundle exec rake db:migrate
|
2635
|
+
[2017-07-02 01:20:57 +0200] - No Pry.
|
2636
|
+
|
2637
|
+
[2017-07-02 01:20:57 +0200] - DONE: bundle exec rake db:migrate in 1.347832 sec
|
2638
|
+
[2017-07-02 01:20:57 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951257
|
2639
|
+
[2017-07-02 01:20:59 +0200] - invoke active_record
|
2640
|
+
create db/migrate/20170701232059_change_the_model_post_at_time1498951257.rb
|
2641
|
+
|
2642
|
+
[2017-07-02 01:20:59 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951257 in 1.837303 sec
|
2643
|
+
[2017-07-02 01:20:59 +0200] - DOING...: bundle exec rake db:migrate
|
2644
|
+
[2017-07-02 01:21:00 +0200] - No Pry.
|
2645
|
+
|
2646
|
+
[2017-07-02 01:21:00 +0200] - DONE: bundle exec rake db:migrate in 1.301399 sec
|
2647
|
+
[2017-07-02 01:21:00 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text
|
2648
|
+
[2017-07-02 01:21:02 +0200] - invoke active_record
|
2649
|
+
create db/migrate/20170701232102_create_posts.rb
|
2650
|
+
create app/models/application_record.rb
|
2651
|
+
create app/models/post.rb
|
2652
|
+
|
2653
|
+
[2017-07-02 01:21:02 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text in 1.822899 sec
|
2654
|
+
[2017-07-02 01:21:02 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate
|
2655
|
+
[2017-07-02 01:21:04 +0200] - No Pry.
|
2656
|
+
== 20170701232102 CreatePosts: migrating ======================================
|
2657
|
+
-- create_table(:posts)
|
2658
|
+
-> 0.0312s
|
2659
|
+
-- add_index(:posts, :title)
|
2660
|
+
-> 0.0051s
|
2661
|
+
== 20170701232102 CreatePosts: migrated (0.0365s) =============================
|
2662
|
+
|
2663
|
+
|
2664
|
+
[2017-07-02 01:21:04 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate in 1.91203 sec
|
2665
|
+
[2017-07-02 01:21:04 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb
|
2666
|
+
[2017-07-02 01:21:05 +0200] - invoke active_record
|
2667
|
+
create db/migrate/20170701232105_create_users.rb
|
2668
|
+
create app/models/user.rb
|
2669
|
+
|
2670
|
+
[2017-07-02 01:21:05 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb in 1.625428 sec
|
2671
|
+
[2017-07-02 01:21:05 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate
|
2672
|
+
[2017-07-02 01:21:07 +0200] - No Pry.
|
2673
|
+
== 20170701232105 CreateUsers: migrating ======================================
|
2674
|
+
-- create_table(:users)
|
2675
|
+
-> 0.0129s
|
2676
|
+
-- add_index(:users, :name)
|
2677
|
+
-> 0.0045s
|
2678
|
+
== 20170701232105 CreateUsers: migrated (0.0176s) =============================
|
2679
|
+
|
2680
|
+
|
2681
|
+
[2017-07-02 01:21:07 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate in 1.546668 sec
|
2682
|
+
[2017-07-02 01:21:07 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text
|
2683
|
+
[2017-07-02 01:21:09 +0200] - invoke active_record
|
2684
|
+
create db/migrate/20170701232109_create_posts.rb
|
2685
|
+
create app/models/application_record.rb
|
2686
|
+
create app/models/post.rb
|
2687
|
+
|
2688
|
+
[2017-07-02 01:21:09 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text in 1.638588 sec
|
2689
|
+
[2017-07-02 01:21:09 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate
|
2690
|
+
[2017-07-02 01:21:10 +0200] - No Pry.
|
2691
|
+
== 20170701232109 CreatePosts: migrating ======================================
|
2692
|
+
-- create_table(:posts)
|
2693
|
+
-> 0.0046s
|
2694
|
+
-- add_index(:posts, :title)
|
2695
|
+
-> 0.0035s
|
2696
|
+
== 20170701232109 CreatePosts: migrated (0.0083s) =============================
|
2697
|
+
|
2698
|
+
|
2699
|
+
[2017-07-02 01:21:10 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate in 1.617479 sec
|
2700
|
+
[2017-07-02 01:21:10 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb
|
2701
|
+
[2017-07-02 01:21:12 +0200] - invoke active_record
|
2702
|
+
create db/migrate/20170701232112_create_users.rb
|
2703
|
+
create app/models/user.rb
|
2704
|
+
|
2705
|
+
[2017-07-02 01:21:12 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb in 1.844842 sec
|
2706
|
+
[2017-07-02 01:21:12 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate
|
2707
|
+
[2017-07-02 01:21:14 +0200] - No Pry.
|
2708
|
+
== 20170701232112 CreateUsers: migrating ======================================
|
2709
|
+
-- create_table(:users)
|
2710
|
+
-> 0.0148s
|
2711
|
+
-- add_index(:users, :name)
|
2712
|
+
-> 0.0054s
|
2713
|
+
== 20170701232112 CreateUsers: migrated (0.0204s) =============================
|
2714
|
+
|
2715
|
+
|
2716
|
+
[2017-07-02 01:21:14 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate in 1.827699 sec
|
2717
|
+
[2017-07-02 01:21:14 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951274
|
2718
|
+
[2017-07-02 01:21:16 +0200] - invoke active_record
|
2719
|
+
create db/migrate/20170701232116_change_the_model_post_at_time1498951274.rb
|
2720
|
+
|
2721
|
+
[2017-07-02 01:21:16 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g migration ChangeTheModelPostAtTime1498951274 in 1.98607 sec
|
2722
|
+
[2017-07-02 01:21:16 +0200] - DOING...: bundle exec rake db:migrate
|
2723
|
+
[2017-07-02 01:21:17 +0200] - No Pry.
|
2724
|
+
|
2725
|
+
[2017-07-02 01:21:17 +0200] - DONE: bundle exec rake db:migrate in 1.399854 sec
|
2726
|
+
[2017-07-02 01:21:17 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text
|
2727
|
+
[2017-07-02 01:21:20 +0200] - invoke active_record
|
2728
|
+
create db/migrate/20170701232120_create_posts.rb
|
2729
|
+
create app/models/application_record.rb
|
2730
|
+
create app/models/post.rb
|
2731
|
+
|
2732
|
+
[2017-07-02 01:21:20 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model Post title:string:index content:text in 2.335796 sec
|
2733
|
+
[2017-07-02 01:21:20 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb
|
2734
|
+
[2017-07-02 01:21:22 +0200] - invoke active_record
|
2735
|
+
create db/migrate/20170701232122_create_users.rb
|
2736
|
+
create app/models/user.rb
|
2737
|
+
|
2738
|
+
[2017-07-02 01:21:22 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model User name:string:index metadata:jsonb in 2.278182 sec
|
2739
|
+
[2017-07-02 01:21:22 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model UserPost user:references post:references
|
2740
|
+
[2017-07-02 01:21:24 +0200] - invoke active_record
|
2741
|
+
create db/migrate/20170701232124_create_user_posts.rb
|
2742
|
+
create app/models/user_post.rb
|
2743
|
+
|
2744
|
+
[2017-07-02 01:21:24 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rails g model UserPost user:references post:references in 2.144073 sec
|
2745
|
+
[2017-07-02 01:21:24 +0200] - DOING...: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate
|
2746
|
+
[2017-07-02 01:21:26 +0200] - No Pry.
|
2747
|
+
== 20170701232120 CreatePosts: migrating ======================================
|
2748
|
+
-- create_table(:posts)
|
2749
|
+
-> 0.0039s
|
2750
|
+
-- add_index(:posts, :title)
|
2751
|
+
-> 0.0026s
|
2752
|
+
== 20170701232120 CreatePosts: migrated (0.0066s) =============================
|
2753
|
+
|
2754
|
+
== 20170701232122 CreateUsers: migrating ======================================
|
2755
|
+
-- create_table(:users)
|
2756
|
+
-> 0.0030s
|
2757
|
+
-- add_index(:users, :name)
|
2758
|
+
-> 0.0022s
|
2759
|
+
== 20170701232122 CreateUsers: migrated (0.0053s) =============================
|
2760
|
+
|
2761
|
+
== 20170701232124 CreateUserPosts: migrating ==================================
|
2762
|
+
-- create_table(:user_posts)
|
2763
|
+
-> 0.0116s
|
2764
|
+
== 20170701232124 CreateUserPosts: migrated (0.0117s) =========================
|
2765
|
+
|
2766
|
+
|
2767
|
+
[2017-07-02 01:21:26 +0200] - DONE: cd '/Users/damln/Work/localtower/spec/dummy' && bundle exec rake db:migrate in 2.141662 sec
|
data/spec/dummy/log/test.log
CHANGED
@@ -2471,3 +2471,113 @@ FOREIGN KEY ("post_id")
|
|
2471
2471
|
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
2472
2472
|
[1m[35m (2.9ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
2473
2473
|
[1m[35m (2.2ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
2474
|
+
[1m[35m (3.6ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
2475
|
+
[1m[35m (13.6ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
2476
|
+
[1m[35m (7.5ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
2477
|
+
[1m[35m (8.2ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
2478
|
+
[1m[35m (23.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
2479
|
+
[1m[35m (20.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
|
2480
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
2481
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2482
|
+
Migrating to CreatePosts (20170701232102)
|
2483
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2484
|
+
[1m[35m (30.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
|
2485
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
2486
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170701232102"]]
|
2487
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
2488
|
+
[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]]
|
2489
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2490
|
+
[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-07-01 23:21:04.148005"], ["updated_at", "2017-07-01 23:21:04.148005"]]
|
2491
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
2492
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
2493
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2494
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
2495
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2496
|
+
Migrating to CreateUsers (20170701232105)
|
2497
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2498
|
+
[1m[35m (12.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
|
2499
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
2500
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170701232105"]]
|
2501
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
2502
|
+
[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]]
|
2503
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2504
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
2505
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
2506
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2507
|
+
[1m[35m (7.4ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
2508
|
+
[1m[35m (7.4ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
2509
|
+
[1m[35m (11.9ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
2510
|
+
[1m[35m (2.5ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
2511
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
2512
|
+
[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
|
2513
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
2514
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2515
|
+
Migrating to CreatePosts (20170701232109)
|
2516
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2517
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "title" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2518
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
2519
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170701232109"]]
|
2520
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
2521
|
+
[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]]
|
2522
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2523
|
+
[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-07-01 23:21:10.651696"], ["updated_at", "2017-07-01 23:21:10.651696"]]
|
2524
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2525
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
2526
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2527
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
2528
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2529
|
+
Migrating to CreateUsers (20170701232112)
|
2530
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2531
|
+
[1m[35m (14.0ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2532
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
2533
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170701232112"]]
|
2534
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2535
|
+
[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]]
|
2536
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2537
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
2538
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
2539
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2540
|
+
[1m[35m (8.4ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
2541
|
+
[1m[35m (7.9ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
2542
|
+
[1m[35m (7.7ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
2543
|
+
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
2544
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
2545
|
+
[1m[35m (2.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
|
2546
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(268089350951355045);[0m
|
2547
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2548
|
+
Migrating to CreatePosts (20170701232120)
|
2549
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2550
|
+
[1m[35m (3.5ms)[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
|
2551
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_posts_on_title" ON "posts" ("title")[0m
|
2552
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170701232120"]]
|
2553
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2554
|
+
Migrating to CreateUsers (20170701232122)
|
2555
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2556
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "name" character varying, "metadata" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2557
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_users_on_name" ON "users" ("name")[0m
|
2558
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170701232122"]]
|
2559
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
2560
|
+
Migrating to CreateUserPosts (20170701232124)
|
2561
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2562
|
+
[1m[35m (6.5ms)[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"
|
2563
|
+
FOREIGN KEY ("user_id")
|
2564
|
+
REFERENCES "users" ("id")
|
2565
|
+
, CONSTRAINT "fk_rails_38a7c4b06f"
|
2566
|
+
FOREIGN KEY ("post_id")
|
2567
|
+
REFERENCES "posts" ("id")
|
2568
|
+
)[0m
|
2569
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_user_id" ON "user_posts" ("user_id")[0m
|
2570
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_user_posts_on_post_id" ON "user_posts" ("post_id")[0m
|
2571
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170701232124"]]
|
2572
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2573
|
+
[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]]
|
2574
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2575
|
+
[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-07-01 23:21:26.651815"], ["updated_at", "2017-07-01 23:21:26.651815"]]
|
2576
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2577
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(268089350951355045)[0m
|
2578
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2579
|
+
[1m[35m (6.9ms)[0m [1m[35mDROP TABLE if exists SCHEMA_MIGRATIONS cascade;[0m
|
2580
|
+
[1m[35m (7.3ms)[0m [1m[35mDROP TABLE if exists AR_INTERNAL_METADATA cascade;[0m
|
2581
|
+
[1m[35m (8.5ms)[0m [1m[35mDROP TABLE if exists USERS cascade;[0m
|
2582
|
+
[1m[35m (3.4ms)[0m [1m[35mDROP TABLE if exists POSTS cascade;[0m
|
2583
|
+
[1m[35m (2.1ms)[0m [1m[35mDROP TABLE if exists USER_POSTS cascade;[0m
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: localtower
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damian Le Nouaille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.0
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
22
|
+
version: 5.1.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 4.2.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.1.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: thor
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +100,20 @@ dependencies:
|
|
94
100
|
- - ">="
|
95
101
|
- !ruby/object:Gem::Version
|
96
102
|
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: require_reloader
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
97
117
|
- !ruby/object:Gem::Dependency
|
98
118
|
name: rspec-rails
|
99
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -326,7 +346,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
326
346
|
version: '0'
|
327
347
|
requirements: []
|
328
348
|
rubyforge_project:
|
329
|
-
rubygems_version: 2.6.
|
349
|
+
rubygems_version: 2.6.12
|
330
350
|
signing_key:
|
331
351
|
specification_version: 4
|
332
352
|
summary: Manage your models, relations, and migrations from a simple UI.
|