Update rails to v6
This commit is contained in:
parent
50409ebdba
commit
ebc9f93b2a
19 changed files with 743 additions and 129 deletions
3
Gemfile
3
Gemfile
|
|
@ -8,7 +8,7 @@ end
|
||||||
ruby '2.6.4'
|
ruby '2.6.4'
|
||||||
|
|
||||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
gem 'rails', '~> 5.2.2'
|
gem 'rails', '~> 6.0.0'
|
||||||
# Use sqlite3 as the database for Active Record
|
# Use sqlite3 as the database for Active Record
|
||||||
gem 'mysql2', '>= 0.4.10'
|
gem 'mysql2', '>= 0.4.10'
|
||||||
# Use Puma as the app server
|
# Use Puma as the app server
|
||||||
|
|
@ -20,6 +20,7 @@ gem 'puma', '~> 3.11'
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
gem 'bcrypt', '~> 3.1.7'
|
gem 'bcrypt', '~> 3.1.7'
|
||||||
gem 'jwt'
|
gem 'jwt'
|
||||||
|
gem 'bootsnap'
|
||||||
gem 'rack-cors', :require => 'rack/cors'
|
gem 'rack-cors', :require => 'rack/cors'
|
||||||
gem 'fast_jsonapi'
|
gem 'fast_jsonapi'
|
||||||
gem 'will_paginate'
|
gem 'will_paginate'
|
||||||
|
|
|
||||||
169
Gemfile.lock
169
Gemfile.lock
|
|
@ -1,59 +1,74 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actioncable (5.2.2)
|
actioncable (6.0.0)
|
||||||
actionpack (= 5.2.2)
|
actionpack (= 6.0.0)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (>= 0.6.1)
|
websocket-driver (>= 0.6.1)
|
||||||
actionmailer (5.2.2)
|
actionmailbox (6.0.0)
|
||||||
actionpack (= 5.2.2)
|
actionpack (= 6.0.0)
|
||||||
actionview (= 5.2.2)
|
activejob (= 6.0.0)
|
||||||
activejob (= 5.2.2)
|
activerecord (= 6.0.0)
|
||||||
|
activestorage (= 6.0.0)
|
||||||
|
activesupport (= 6.0.0)
|
||||||
|
mail (>= 2.7.1)
|
||||||
|
actionmailer (6.0.0)
|
||||||
|
actionpack (= 6.0.0)
|
||||||
|
actionview (= 6.0.0)
|
||||||
|
activejob (= 6.0.0)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (5.2.2)
|
actionpack (6.0.0)
|
||||||
actionview (= 5.2.2)
|
actionview (= 6.0.0)
|
||||||
activesupport (= 5.2.2)
|
activesupport (= 6.0.0)
|
||||||
rack (~> 2.0)
|
rack (~> 2.0)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||||
actionview (5.2.2)
|
actiontext (6.0.0)
|
||||||
activesupport (= 5.2.2)
|
actionpack (= 6.0.0)
|
||||||
|
activerecord (= 6.0.0)
|
||||||
|
activestorage (= 6.0.0)
|
||||||
|
activesupport (= 6.0.0)
|
||||||
|
nokogiri (>= 1.8.5)
|
||||||
|
actionview (6.0.0)
|
||||||
|
activesupport (= 6.0.0)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
||||||
activejob (5.2.2)
|
activejob (6.0.0)
|
||||||
activesupport (= 5.2.2)
|
activesupport (= 6.0.0)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (5.2.2)
|
activemodel (6.0.0)
|
||||||
activesupport (= 5.2.2)
|
activesupport (= 6.0.0)
|
||||||
activerecord (5.2.2)
|
activerecord (6.0.0)
|
||||||
activemodel (= 5.2.2)
|
activemodel (= 6.0.0)
|
||||||
activesupport (= 5.2.2)
|
activesupport (= 6.0.0)
|
||||||
arel (>= 9.0)
|
activestorage (6.0.0)
|
||||||
activestorage (5.2.2)
|
actionpack (= 6.0.0)
|
||||||
actionpack (= 5.2.2)
|
activejob (= 6.0.0)
|
||||||
activerecord (= 5.2.2)
|
activerecord (= 6.0.0)
|
||||||
marcel (~> 0.3.1)
|
marcel (~> 0.3.1)
|
||||||
activesupport (5.2.2)
|
activesupport (6.0.0)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 0.7, < 2)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
airbrussh (1.3.1)
|
zeitwerk (~> 2.1, >= 2.1.8)
|
||||||
|
airbrussh (1.3.4)
|
||||||
sshkit (>= 1.6.1, != 1.7.0)
|
sshkit (>= 1.6.1, != 1.7.0)
|
||||||
arel (9.0.0)
|
bcrypt (3.1.13)
|
||||||
bcrypt (3.1.12)
|
bootsnap (1.4.5)
|
||||||
|
msgpack (~> 1.0)
|
||||||
builder (3.2.3)
|
builder (3.2.3)
|
||||||
byebug (10.0.2)
|
byebug (11.0.1)
|
||||||
capistrano (3.10.1)
|
capistrano (3.10.1)
|
||||||
airbrussh (>= 1.0.0)
|
airbrussh (>= 1.0.0)
|
||||||
i18n
|
i18n
|
||||||
rake (>= 10.0.0)
|
rake (>= 10.0.0)
|
||||||
sshkit (>= 1.9.0)
|
sshkit (>= 1.9.0)
|
||||||
capistrano-bundler (1.5.0)
|
capistrano-bundler (1.6.0)
|
||||||
capistrano (~> 3.1)
|
capistrano (~> 3.1)
|
||||||
capistrano-passenger (0.2.0)
|
capistrano-passenger (0.2.0)
|
||||||
capistrano (~> 3.0)
|
capistrano (~> 3.0)
|
||||||
|
|
@ -63,26 +78,26 @@ GEM
|
||||||
capistrano-rbenv (2.1.4)
|
capistrano-rbenv (2.1.4)
|
||||||
capistrano (~> 3.1)
|
capistrano (~> 3.1)
|
||||||
sshkit (~> 1.3)
|
sshkit (~> 1.3)
|
||||||
concurrent-ruby (1.1.4)
|
concurrent-ruby (1.1.5)
|
||||||
crass (1.0.4)
|
crass (1.0.4)
|
||||||
database_cleaner (1.7.0)
|
database_cleaner (1.7.0)
|
||||||
diff-lcs (1.3)
|
diff-lcs (1.3)
|
||||||
erubi (1.8.0)
|
erubi (1.9.0)
|
||||||
factory_girl (4.9.0)
|
factory_girl (4.9.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
factory_girl_rails (4.9.0)
|
factory_girl_rails (4.9.0)
|
||||||
factory_girl (~> 4.9.0)
|
factory_girl (~> 4.9.0)
|
||||||
railties (>= 3.0.0)
|
railties (>= 3.0.0)
|
||||||
faker (1.9.2)
|
faker (2.4.0)
|
||||||
i18n (>= 0.7)
|
i18n (~> 1.6.0)
|
||||||
fast_jsonapi (1.5)
|
fast_jsonapi (1.5)
|
||||||
activesupport (>= 4.2)
|
activesupport (>= 4.2)
|
||||||
ffi (1.10.0)
|
ffi (1.11.1)
|
||||||
globalid (0.4.2)
|
globalid (0.4.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
i18n (1.5.3)
|
i18n (1.6.0)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jwt (2.1.0)
|
jwt (2.2.1)
|
||||||
listen (3.1.5)
|
listen (3.1.5)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
|
|
@ -96,55 +111,58 @@ GEM
|
||||||
mimemagic (~> 0.3.2)
|
mimemagic (~> 0.3.2)
|
||||||
method_source (0.9.2)
|
method_source (0.9.2)
|
||||||
mimemagic (0.3.3)
|
mimemagic (0.3.3)
|
||||||
mini_mime (1.0.1)
|
mini_mime (1.0.2)
|
||||||
mini_portile2 (2.4.0)
|
mini_portile2 (2.4.0)
|
||||||
minitest (5.11.3)
|
minitest (5.12.0)
|
||||||
|
msgpack (1.3.1)
|
||||||
mysql2 (0.5.2)
|
mysql2 (0.5.2)
|
||||||
net-scp (1.2.1)
|
net-scp (2.0.0)
|
||||||
net-ssh (>= 2.6.5)
|
net-ssh (>= 2.6.5, < 6.0.0)
|
||||||
net-ssh (5.1.0)
|
net-ssh (5.2.0)
|
||||||
nio4r (2.3.1)
|
nio4r (2.5.2)
|
||||||
nokogiri (1.10.1)
|
nokogiri (1.10.4)
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
puma (3.12.0)
|
puma (3.12.1)
|
||||||
rack (2.0.6)
|
rack (2.0.7)
|
||||||
rack-cors (1.0.2)
|
rack-cors (1.0.3)
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (5.2.2)
|
rails (6.0.0)
|
||||||
actioncable (= 5.2.2)
|
actioncable (= 6.0.0)
|
||||||
actionmailer (= 5.2.2)
|
actionmailbox (= 6.0.0)
|
||||||
actionpack (= 5.2.2)
|
actionmailer (= 6.0.0)
|
||||||
actionview (= 5.2.2)
|
actionpack (= 6.0.0)
|
||||||
activejob (= 5.2.2)
|
actiontext (= 6.0.0)
|
||||||
activemodel (= 5.2.2)
|
actionview (= 6.0.0)
|
||||||
activerecord (= 5.2.2)
|
activejob (= 6.0.0)
|
||||||
activestorage (= 5.2.2)
|
activemodel (= 6.0.0)
|
||||||
activesupport (= 5.2.2)
|
activerecord (= 6.0.0)
|
||||||
|
activestorage (= 6.0.0)
|
||||||
|
activesupport (= 6.0.0)
|
||||||
bundler (>= 1.3.0)
|
bundler (>= 1.3.0)
|
||||||
railties (= 5.2.2)
|
railties (= 6.0.0)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-dom-testing (2.0.3)
|
rails-dom-testing (2.0.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
rails-html-sanitizer (1.0.4)
|
rails-html-sanitizer (1.2.0)
|
||||||
loofah (~> 2.2, >= 2.2.2)
|
loofah (~> 2.2, >= 2.2.2)
|
||||||
railties (5.2.2)
|
railties (6.0.0)
|
||||||
actionpack (= 5.2.2)
|
actionpack (= 6.0.0)
|
||||||
activesupport (= 5.2.2)
|
activesupport (= 6.0.0)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.19.0, < 2.0)
|
thor (>= 0.20.3, < 2.0)
|
||||||
rake (12.3.2)
|
rake (12.3.3)
|
||||||
rb-fsevent (0.10.3)
|
rb-fsevent (0.10.3)
|
||||||
rb-inotify (0.10.0)
|
rb-inotify (0.10.0)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rspec-core (3.8.0)
|
rspec-core (3.8.2)
|
||||||
rspec-support (~> 3.8.0)
|
rspec-support (~> 3.8.0)
|
||||||
rspec-expectations (3.8.2)
|
rspec-expectations (3.8.4)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.8.0)
|
rspec-support (~> 3.8.0)
|
||||||
rspec-mocks (3.8.0)
|
rspec-mocks (3.8.1)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
rspec-support (~> 3.8.0)
|
rspec-support (~> 3.8.0)
|
||||||
rspec-rails (3.8.2)
|
rspec-rails (3.8.2)
|
||||||
|
|
@ -155,12 +173,11 @@ GEM
|
||||||
rspec-expectations (~> 3.8.0)
|
rspec-expectations (~> 3.8.0)
|
||||||
rspec-mocks (~> 3.8.0)
|
rspec-mocks (~> 3.8.0)
|
||||||
rspec-support (~> 3.8.0)
|
rspec-support (~> 3.8.0)
|
||||||
rspec-support (3.8.0)
|
rspec-support (3.8.2)
|
||||||
ruby_dep (1.5.0)
|
ruby_dep (1.5.0)
|
||||||
shoulda-matchers (3.1.3)
|
shoulda-matchers (3.1.3)
|
||||||
activesupport (>= 4.0.0)
|
activesupport (>= 4.0.0)
|
||||||
spring (2.0.2)
|
spring (2.1.0)
|
||||||
activesupport (>= 4.2)
|
|
||||||
spring-watcher-listen (2.0.1)
|
spring-watcher-listen (2.0.1)
|
||||||
listen (>= 2.7, < 4.0)
|
listen (>= 2.7, < 4.0)
|
||||||
spring (>= 1.2, < 3.0)
|
spring (>= 1.2, < 3.0)
|
||||||
|
|
@ -171,23 +188,25 @@ GEM
|
||||||
actionpack (>= 4.0)
|
actionpack (>= 4.0)
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sshkit (1.18.2)
|
sshkit (1.20.0)
|
||||||
net-scp (>= 1.1.2)
|
net-scp (>= 1.1.2)
|
||||||
net-ssh (>= 2.8.0)
|
net-ssh (>= 2.8.0)
|
||||||
thor (0.20.3)
|
thor (0.20.3)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
tzinfo (1.2.5)
|
tzinfo (1.2.5)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
websocket-driver (0.7.0)
|
websocket-driver (0.7.1)
|
||||||
websocket-extensions (>= 0.1.0)
|
websocket-extensions (>= 0.1.0)
|
||||||
websocket-extensions (0.1.3)
|
websocket-extensions (0.1.4)
|
||||||
will_paginate (3.1.6)
|
will_paginate (3.1.8)
|
||||||
|
zeitwerk (2.1.10)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bcrypt (~> 3.1.7)
|
bcrypt (~> 3.1.7)
|
||||||
|
bootsnap
|
||||||
byebug
|
byebug
|
||||||
capistrano (= 3.10.1)
|
capistrano (= 3.10.1)
|
||||||
capistrano-bundler
|
capistrano-bundler
|
||||||
|
|
@ -203,7 +222,7 @@ DEPENDENCIES
|
||||||
mysql2 (>= 0.4.10)
|
mysql2 (>= 0.4.10)
|
||||||
puma (~> 3.11)
|
puma (~> 3.11)
|
||||||
rack-cors
|
rack-cors
|
||||||
rails (~> 5.2.2)
|
rails (~> 6.0.0)
|
||||||
rspec-rails (~> 3.5)
|
rspec-rails (~> 3.5)
|
||||||
shoulda-matchers (~> 3.1)
|
shoulda-matchers (~> 3.1)
|
||||||
spring
|
spring
|
||||||
|
|
|
||||||
2
bin/bundle
Normal file → Executable file
2
bin/bundle
Normal file → Executable file
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
||||||
load Gem.bin_path('bundler', 'bundle')
|
load Gem.bin_path('bundler', 'bundle')
|
||||||
|
|
|
||||||
5
bin/rails
Normal file → Executable file
5
bin/rails
Normal file → Executable file
|
|
@ -1,9 +1,4 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
begin
|
|
||||||
load File.expand_path('../spring', __FILE__)
|
|
||||||
rescue LoadError => e
|
|
||||||
raise unless e.message.include?('spring')
|
|
||||||
end
|
|
||||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rails/commands'
|
require 'rails/commands'
|
||||||
|
|
|
||||||
5
bin/rake
Normal file → Executable file
5
bin/rake
Normal file → Executable file
|
|
@ -1,9 +1,4 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
begin
|
|
||||||
load File.expand_path('../spring', __FILE__)
|
|
||||||
rescue LoadError => e
|
|
||||||
raise unless e.message.include?('spring')
|
|
||||||
end
|
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
Rake.application.run
|
Rake.application.run
|
||||||
|
|
|
||||||
4
bin/setup
Normal file → Executable file
4
bin/setup
Normal file → Executable file
|
|
@ -1,10 +1,9 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
require 'pathname'
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
include FileUtils
|
include FileUtils
|
||||||
|
|
||||||
# path to your application root.
|
# path to your application root.
|
||||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
APP_ROOT = File.expand_path('..', __dir__)
|
||||||
|
|
||||||
def system!(*args)
|
def system!(*args)
|
||||||
system(*args) || abort("\n== Command #{args} failed ==")
|
system(*args) || abort("\n== Command #{args} failed ==")
|
||||||
|
|
@ -18,7 +17,6 @@ chdir APP_ROOT do
|
||||||
system! 'gem install bundler --conservative'
|
system! 'gem install bundler --conservative'
|
||||||
system('bundle check') || system!('bundle install')
|
system('bundle check') || system!('bundle install')
|
||||||
|
|
||||||
|
|
||||||
# puts "\n== Copying sample files =="
|
# puts "\n== Copying sample files =="
|
||||||
# unless File.exist?('config/database.yml')
|
# unless File.exist?('config/database.yml')
|
||||||
# cp 'config/database.yml.sample', 'config/database.yml'
|
# cp 'config/database.yml.sample', 'config/database.yml'
|
||||||
|
|
|
||||||
0
bin/spring
Normal file → Executable file
0
bin/spring
Normal file → Executable file
3
bin/update
Normal file → Executable file
3
bin/update
Normal file → Executable file
|
|
@ -1,10 +1,9 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
require 'pathname'
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
include FileUtils
|
include FileUtils
|
||||||
|
|
||||||
# path to your application root.
|
# path to your application root.
|
||||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
APP_ROOT = File.expand_path('..', __dir__)
|
||||||
|
|
||||||
def system!(*args)
|
def system!(*args)
|
||||||
system(*args) || abort("\n== Command #{args} failed ==")
|
system(*args) || abort("\n== Command #{args} failed ==")
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ require "rails"
|
||||||
require "active_model/railtie"
|
require "active_model/railtie"
|
||||||
require "active_job/railtie"
|
require "active_job/railtie"
|
||||||
require "active_record/railtie"
|
require "active_record/railtie"
|
||||||
|
require "active_storage/engine"
|
||||||
require "action_controller/railtie"
|
require "action_controller/railtie"
|
||||||
require "action_mailer/railtie"
|
require "action_mailer/railtie"
|
||||||
require "action_view/railtie"
|
require "action_view/railtie"
|
||||||
|
|
@ -15,7 +16,7 @@ require "action_cable/engine"
|
||||||
# Require the gems listed in Gemfile, including any gems
|
# Require the gems listed in Gemfile, including any gems
|
||||||
# you've limited to :test, :development, or :production.
|
# you've limited to :test, :development, or :production.
|
||||||
Bundler.require(*Rails.groups)
|
Bundler.require(*Rails.groups)
|
||||||
require 'rails/all'
|
#require 'rails/all'
|
||||||
|
|
||||||
module VeretoApi
|
module VeretoApi
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
||||||
|
|
||||||
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
||||||
|
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@ test:
|
||||||
|
|
||||||
production:
|
production:
|
||||||
adapter: redis
|
adapter: redis
|
||||||
url: redis://localhost:6379/1
|
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
|
||||||
channel_prefix: vereto-api_production
|
channel_prefix: vereto_api_production
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,13 @@ Rails.application.configure do
|
||||||
config.consider_all_requests_local = true
|
config.consider_all_requests_local = true
|
||||||
|
|
||||||
# Enable/disable caching. By default caching is disabled.
|
# Enable/disable caching. By default caching is disabled.
|
||||||
if Rails.root.join('tmp/caching-dev.txt').exist?
|
# Run rails dev:cache to toggle caching.
|
||||||
|
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
|
|
||||||
config.cache_store = :memory_store
|
config.cache_store = :memory_store
|
||||||
config.public_file_server.headers = {
|
config.public_file_server.headers = {
|
||||||
'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
|
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
config.action_controller.perform_caching = false
|
config.action_controller.perform_caching = false
|
||||||
|
|
@ -26,6 +27,9 @@ Rails.application.configure do
|
||||||
config.cache_store = :null_store
|
config.cache_store = :null_store
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Store uploaded files on the local file system (see config/storage.yml for options)
|
||||||
|
config.active_storage.service = :local
|
||||||
|
|
||||||
# Don't care if the mailer can't send.
|
# Don't care if the mailer can't send.
|
||||||
config.action_mailer.raise_delivery_errors = false
|
config.action_mailer.raise_delivery_errors = false
|
||||||
|
|
||||||
|
|
@ -37,6 +41,9 @@ Rails.application.configure do
|
||||||
# Raise an error on page load if there are pending migrations.
|
# Raise an error on page load if there are pending migrations.
|
||||||
config.active_record.migration_error = :page_load
|
config.active_record.migration_error = :page_load
|
||||||
|
|
||||||
|
# Highlight code that triggered database queries in logs.
|
||||||
|
config.active_record.verbose_query_logs = true
|
||||||
|
|
||||||
|
|
||||||
# Raises error for missing translations
|
# Raises error for missing translations
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.action_view.raise_on_missing_translations = true
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,14 @@ Rails.application.configure do
|
||||||
config.consider_all_requests_local = false
|
config.consider_all_requests_local = false
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
|
|
||||||
# Attempt to read encrypted secrets from `config/secrets.yml.enc`.
|
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
||||||
# Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
|
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
||||||
# `config/secrets.yml.key`.
|
# config.require_master_key = true
|
||||||
config.read_encrypted_secrets = true
|
|
||||||
|
|
||||||
# Disable serving static files from the `/public` folder by default since
|
# Disable serving static files from the `/public` folder by default since
|
||||||
# Apache or NGINX already handles this.
|
# Apache or NGINX already handles this.
|
||||||
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
||||||
|
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
# config.action_controller.asset_host = 'http://assets.example.com'
|
||||||
|
|
||||||
|
|
@ -31,6 +29,9 @@ Rails.application.configure do
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
||||||
|
|
||||||
|
# Store uploaded files on the local file system (see config/storage.yml for options)
|
||||||
|
config.active_storage.service = :local
|
||||||
|
|
||||||
# Mount Action Cable outside main process or domain
|
# Mount Action Cable outside main process or domain
|
||||||
# config.action_cable.mount_path = nil
|
# config.action_cable.mount_path = nil
|
||||||
# config.action_cable.url = 'wss://example.com/cable'
|
# config.action_cable.url = 'wss://example.com/cable'
|
||||||
|
|
@ -51,7 +52,8 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Use a real queuing backend for Active Job (and separate queues per environment)
|
# Use a real queuing backend for Active Job (and separate queues per environment)
|
||||||
# config.active_job.queue_adapter = :resque
|
# config.active_job.queue_adapter = :resque
|
||||||
# config.active_job.queue_name_prefix = "vereto-api_#{Rails.env}"
|
# config.active_job.queue_name_prefix = "vereto_api_#{Rails.env}"
|
||||||
|
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
|
||||||
# Ignore bad email addresses and do not raise email delivery errors.
|
# Ignore bad email addresses and do not raise email delivery errors.
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ Rails.application.configure do
|
||||||
# Configure public file server for tests with Cache-Control for performance.
|
# Configure public file server for tests with Cache-Control for performance.
|
||||||
config.public_file_server.enabled = true
|
config.public_file_server.enabled = true
|
||||||
config.public_file_server.headers = {
|
config.public_file_server.headers = {
|
||||||
'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
|
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Show full error reports and disable caching.
|
# Show full error reports and disable caching.
|
||||||
|
|
@ -27,6 +27,10 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Disable request forgery protection in test environment.
|
# Disable request forgery protection in test environment.
|
||||||
config.action_controller.allow_forgery_protection = false
|
config.action_controller.allow_forgery_protection = false
|
||||||
|
|
||||||
|
# Store uploaded files on the local file system in a temporary directory
|
||||||
|
config.active_storage.service = :test
|
||||||
|
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
|
||||||
# Tell Action Mailer not to deliver emails to the real world.
|
# Tell Action Mailer not to deliver emails to the real world.
|
||||||
|
|
|
||||||
38
config/initializers/new_framework_defaults_5_2.rb
Normal file
38
config/initializers/new_framework_defaults_5_2.rb
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Be sure to restart your server when you modify this file.
|
||||||
|
#
|
||||||
|
# This file contains migration options to ease your Rails 5.2 upgrade.
|
||||||
|
#
|
||||||
|
# Once upgraded flip defaults one by one to migrate to the new default.
|
||||||
|
#
|
||||||
|
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
|
||||||
|
|
||||||
|
# Make Active Record use stable #cache_key alongside new #cache_version method.
|
||||||
|
# This is needed for recyclable cache keys.
|
||||||
|
# Rails.application.config.active_record.cache_versioning = true
|
||||||
|
|
||||||
|
# Use AES-256-GCM authenticated encryption for encrypted cookies.
|
||||||
|
# Also, embed cookie expiry in signed or encrypted cookies for increased security.
|
||||||
|
#
|
||||||
|
# This option is not backwards compatible with earlier Rails versions.
|
||||||
|
# It's best enabled when your entire app is migrated and stable on 5.2.
|
||||||
|
#
|
||||||
|
# Existing cookies will be converted on read then written with the new scheme.
|
||||||
|
# Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true
|
||||||
|
|
||||||
|
# Use AES-256-GCM authenticated encryption as default cipher for encrypting messages
|
||||||
|
# instead of AES-256-CBC, when use_authenticated_message_encryption is set to true.
|
||||||
|
# Rails.application.config.active_support.use_authenticated_message_encryption = true
|
||||||
|
|
||||||
|
# Add default protection from forgery to ActionController::Base instead of in
|
||||||
|
# ApplicationController.
|
||||||
|
# Rails.application.config.action_controller.default_protect_from_forgery = true
|
||||||
|
|
||||||
|
# Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and
|
||||||
|
# 'f' after migrating old data.
|
||||||
|
# Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
||||||
|
|
||||||
|
# Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header.
|
||||||
|
# Rails.application.config.active_support.use_sha1_digests = true
|
||||||
|
|
||||||
|
# Make `form_with` generate id attributes for any generated HTML tags.
|
||||||
|
# Rails.application.config.action_view.form_with_generates_ids = true
|
||||||
|
|
@ -26,31 +26,9 @@ environment ENV.fetch("RAILS_ENV") { "development" }
|
||||||
# Use the `preload_app!` method when specifying a `workers` number.
|
# Use the `preload_app!` method when specifying a `workers` number.
|
||||||
# This directive tells Puma to first boot the application and load code
|
# This directive tells Puma to first boot the application and load code
|
||||||
# before forking the application. This takes advantage of Copy On Write
|
# before forking the application. This takes advantage of Copy On Write
|
||||||
# process behavior so workers use less memory. If you use this option
|
# process behavior so workers use less memory.
|
||||||
# you need to make sure to reconnect any threads in the `on_worker_boot`
|
|
||||||
# block.
|
|
||||||
#
|
#
|
||||||
# preload_app!
|
# preload_app!
|
||||||
|
|
||||||
# If you are preloading your application and using Active Record, it's
|
|
||||||
# recommended that you close any connections to the database before workers
|
|
||||||
# are forked to prevent connection leakage.
|
|
||||||
#
|
|
||||||
# before_fork do
|
|
||||||
# ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
|
|
||||||
# end
|
|
||||||
|
|
||||||
# The code in the `on_worker_boot` will be called if you are using
|
|
||||||
# clustered mode by specifying a number of `workers`. After each worker
|
|
||||||
# process is booted, this block will be run. If you are using the `preload_app!`
|
|
||||||
# option, you will want to use this block to reconnect to any threads
|
|
||||||
# or connections that may have been created at application boot, as Ruby
|
|
||||||
# cannot share connections between processes.
|
|
||||||
#
|
|
||||||
# on_worker_boot do
|
|
||||||
# ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
|
|
||||||
# Allow puma to be restarted by `rails restart` command.
|
# Allow puma to be restarted by `rails restart` command.
|
||||||
plugin :tmp_restart
|
plugin :tmp_restart
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
%w(
|
%w[
|
||||||
.ruby-version
|
.ruby-version
|
||||||
.rbenv-vars
|
.rbenv-vars
|
||||||
tmp/restart.txt
|
tmp/restart.txt
|
||||||
tmp/caching-dev.txt
|
tmp/caching-dev.txt
|
||||||
).each { |path| Spring.watch(path) }
|
].each { |path| Spring.watch(path) }
|
||||||
|
|
|
||||||
34
config/storage.yml
Normal file
34
config/storage.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
test:
|
||||||
|
service: Disk
|
||||||
|
root: <%= Rails.root.join("tmp/storage") %>
|
||||||
|
|
||||||
|
local:
|
||||||
|
service: Disk
|
||||||
|
root: <%= Rails.root.join("storage") %>
|
||||||
|
|
||||||
|
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
||||||
|
# amazon:
|
||||||
|
# service: S3
|
||||||
|
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
||||||
|
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
||||||
|
# region: us-east-1
|
||||||
|
# bucket: your_own_bucket
|
||||||
|
|
||||||
|
# Remember not to checkin your GCS keyfile to a repository
|
||||||
|
# google:
|
||||||
|
# service: GCS
|
||||||
|
# project: your_project
|
||||||
|
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
||||||
|
# bucket: your_own_bucket
|
||||||
|
|
||||||
|
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
||||||
|
# microsoft:
|
||||||
|
# service: AzureStorage
|
||||||
|
# storage_account_name: your_account_name
|
||||||
|
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
||||||
|
# container: your_container_name
|
||||||
|
|
||||||
|
# mirror:
|
||||||
|
# service: Mirror
|
||||||
|
# primary: local
|
||||||
|
# mirrors: [ amazon, google, microsoft ]
|
||||||
542
log/development.log
Normal file
542
log/development.log
Normal file
|
|
@ -0,0 +1,542 @@
|
||||||
|
Started GET "/" for 127.0.0.1 at 2019-02-12 10:54:57 +0100
|
||||||
|
|
||||||
|
Mysql2::Error::ConnectionError (Access denied for user 'root'@'localhost' (using password: YES)):
|
||||||
|
|
||||||
|
mysql2 (0.5.2) lib/mysql2/client.rb:90:in `connect'
|
||||||
|
mysql2 (0.5.2) lib/mysql2/client.rb:90:in `initialize'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:811:in `new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:855:in `checkout_new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:834:in `try_to_checkout_new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:795:in `acquire_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:523:in `checkout'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:1010:in `retrieve_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_handling.rb:118:in `retrieve_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_handling.rb:90:in `connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/migration.rb:554:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
||||||
|
activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:26:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call'
|
||||||
|
rack (2.0.6) lib/rack/runtime.rb:22:in `call'
|
||||||
|
activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call'
|
||||||
|
rack (2.0.6) lib/rack/sendfile.rb:111:in `call'
|
||||||
|
rack-cors (1.0.2) lib/rack/cors.rb:97:in `call'
|
||||||
|
railties (5.2.2) lib/rails/engine.rb:524:in `call'
|
||||||
|
puma (3.12.0) lib/puma/configuration.rb:225:in `call'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:658:in `handle_request'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:472:in `process_client'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:332:in `block in run'
|
||||||
|
puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'
|
||||||
|
[1m[35m (11.7ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mCREATE DATABASE `vereto-api-dev` DEFAULT CHARACTER SET `utf8`[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mCREATE DATABASE `vereto-api-test` DEFAULT CHARACTER SET `utf8`[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (18.7ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL PRIMARY KEY)[0m
|
||||||
|
[1m[35m (41.7ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)[0m
|
||||||
|
[1m[35m (0.3ms)[0m [1m[34mSELECT GET_LOCK('1433072424460498080', 0)[0m
|
||||||
|
[1m[35m (1.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Migrating to CreateUsers (20180216131546)
|
||||||
|
[1m[35m (31.7ms)[0m [1m[35mCREATE TABLE `users` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `email` varchar(255), `password_digest` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20180216131546')[0m
|
||||||
|
[1m[35m (6.2ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
Migrating to CreateArticles (20180219100642)
|
||||||
|
[1m[35m (53.8ms)[0m [1m[35mCREATE TABLE `articles` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `title` varchar(255), `post` text, `user_id` bigint, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_articles_on_user_id` (`user_id`), CONSTRAINT `fk_rails_3d31dad1cc`
|
||||||
|
FOREIGN KEY (`user_id`)
|
||||||
|
REFERENCES `users` (`id`)
|
||||||
|
) ENGINE=InnoDB[0m
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20180219100642')[0m
|
||||||
|
[1m[35m (26.4ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
Migrating to CreateComments (20180222154430)
|
||||||
|
[1m[35m (59.3ms)[0m [1m[35mCREATE TABLE `comments` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `content` text, `article_id` bigint, `user_id` bigint, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_comments_on_article_id` (`article_id`), INDEX `index_comments_on_user_id` (`user_id`), CONSTRAINT `fk_rails_3bf61a60d3`
|
||||||
|
FOREIGN KEY (`article_id`)
|
||||||
|
REFERENCES `articles` (`id`)
|
||||||
|
, CONSTRAINT `fk_rails_03de2dc08c`
|
||||||
|
FOREIGN KEY (`user_id`)
|
||||||
|
REFERENCES `users` (`id`)
|
||||||
|
) ENGINE=InnoDB[0m
|
||||||
|
[1m[35m (3.0ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20180222154430')[0m
|
||||||
|
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2019-02-12 09:55:50', '2019-02-12 09:55:50')[0m
|
||||||
|
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT RELEASE_LOCK('1433072424460498080')[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Started GET "/" for 127.0.0.1 at 2019-02-12 10:56:10 +0100
|
||||||
|
[1m[35m (1.4ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.3ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Processing by Rails::WelcomeController#index as HTML
|
||||||
|
Rendering /home/crmcma/.rvm/gems/ruby-2.5.1/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb
|
||||||
|
Rendered /home/crmcma/.rvm/gems/ruby-2.5.1/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb (4.3ms)
|
||||||
|
Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started GET "/articles" for 127.0.0.1 at 2019-02-12 10:56:30 +0100
|
||||||
|
Processing by V1::ArticlesController#index as HTML
|
||||||
|
[1m[35m (1.8ms)[0m [1m[34mSELECT COUNT(*) FROM `articles`[0m
|
||||||
|
[1m[36mArticle Load (0.9ms)[0m [1m[34mSELECT `articles`.* FROM `articles` ORDER BY `articles`.`created_at` DESC LIMIT 10 OFFSET 0[0m
|
||||||
|
Completed 200 OK in 39ms (Views: 0.4ms | ActiveRecord: 3.9ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/register" for 127.0.0.1 at 2019-02-12 10:58:37 +0100
|
||||||
|
Processing by UsersController#create as HTML
|
||||||
|
Parameters: {"name"=>"Conor", "email"=>"conor@manusit.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "user"=>{"name"=>"Conor", "email"=>"conor@manusit.com"}}
|
||||||
|
Unpermitted parameter: :user
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mUser Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO `users` (`name`, `email`, `password_digest`, `created_at`, `updated_at`) VALUES ('Conor', 'conor@manusit.com', '$2a$10$DYwsTWega.Wdqdijh2VUxuhaL0VIxBBWmxHWvkTVnwSYdWKPemkpS', '2019-02-12 09:58:37', '2019-02-12 09:58:37')[0m
|
||||||
|
[1m[35m (4.5ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 201 Created in 248ms (Views: 0.3ms | ActiveRecord: 11.8ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 10:59:19 +0100
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 135ms (Views: 0.8ms | ActiveRecord: 0.4ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 11:29:34 +0100
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 177ms (Views: 0.8ms | ActiveRecord: 4.0ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 11:30:40 +0100
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 171ms (Views: 1.1ms | ActiveRecord: 0.4ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started GET "/" for 127.0.0.1 at 2019-02-12 11:31:43 +0100
|
||||||
|
Processing by Rails::WelcomeController#index as HTML
|
||||||
|
Rendering /home/crmcma/.rvm/gems/ruby-2.5.1/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb
|
||||||
|
Rendered /home/crmcma/.rvm/gems/ruby-2.5.1/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb (3.6ms)
|
||||||
|
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.0ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 15:42:31 +0100
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 162ms (Views: 2.4ms | ActiveRecord: 1.9ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 15:57:56 +0100
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 129ms (Views: 0.8ms | ActiveRecord: 1.5ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 16:45:22 +0100
|
||||||
|
[1m[35m (0.8ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 163ms (Views: 2.6ms | ActiveRecord: 1.3ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 16:46:40 +0100
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 180ms (Views: 0.6ms | ActiveRecord: 0.2ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 16:52:50 +0100
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 159ms (Views: 0.7ms | ActiveRecord: 1.1ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 16:54:04 +0100
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (2.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 183ms (Views: 5.1ms | ActiveRecord: 2.3ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 16:56:01 +0100
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 176ms (Views: 1.1ms | ActiveRecord: 0.6ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 16:58:38 +0100
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (1.2ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 165ms (Views: 0.6ms | ActiveRecord: 1.3ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 17:08:06 +0100
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.1ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.4ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 175ms (Views: 2.0ms | ActiveRecord: 1.3ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started POST "/login" for 127.0.0.1 at 2019-02-12 17:08:29 +0100
|
||||||
|
Processing by AuthenticationController#authenticate as HTML
|
||||||
|
Parameters: {"email"=>"conor@manusit.com", "password"=>"[FILTERED]", "authentication"=>{"email"=>"conor@manusit.com", "password"=>"[FILTERED]"}}
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mUser Load (0.9ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m
|
||||||
|
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Unpermitted parameter: :authentication
|
||||||
|
[1m[36mCACHE User Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'conor@manusit.com' LIMIT 1[0m [["email", "conor@manusit.com"], ["LIMIT", 1]]
|
||||||
|
Completed 200 OK in 150ms (Views: 1.3ms | ActiveRecord: 1.2ms)
|
||||||
|
|
||||||
|
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT GET_LOCK('1433072424460498080', 0)[0m
|
||||||
|
[1m[35m (6.6ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Migrating to CreateUserProfiles (20190214142704)
|
||||||
|
[1m[35m (59.6ms)[0m [1m[35mCREATE TABLE `user_profiles` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `avatar` varchar(255), `tagline` varchar(255), `dob` date, `role` varchar(255), `user_id` bigint, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_user_profiles_on_user_id` (`user_id`), CONSTRAINT `fk_rails_87a6352e58`
|
||||||
|
FOREIGN KEY (`user_id`)
|
||||||
|
REFERENCES `users` (`id`)
|
||||||
|
)[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20190214142704')[0m
|
||||||
|
[1m[35m (8.8ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[36mActiveRecord::InternalMetadata Load (8.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT RELEASE_LOCK('1433072424460498080')[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[35m (0.5ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[36mComment Load (0.5ms)[0m [1m[34mSELECT `comments`.* FROM `comments` LIMIT 11[0m
|
||||||
|
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT `users`.* FROM `users` LIMIT 11[0m
|
||||||
|
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mComment Load (0.5ms)[0m [1m[34mSELECT `comments`.* FROM `comments` WHERE `comments`.`user_id` = 1 LIMIT 11[0m
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT GET_LOCK('1433072424460498080', 0)[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT RELEASE_LOCK('1433072424460498080')[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.4ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[35m (0.5ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[36mUserProfile Load (0.4ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` LIMIT 11[0m
|
||||||
|
[1m[36mUser Load (0.7ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.3ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.3ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.1ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.1ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.2ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mUserProfile Create (0.7ms)[0m [1m[32mINSERT INTO `user_profiles` (`avatar`, `tagline`, `dob`, `role`, `user_id`, `created_at`, `updated_at`) VALUES ('img.png', 'The Tagline', -96, 'admin', 1, '2019-02-14 14:52:55', '2019-02-14 14:52:55')[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mUserProfile Create (0.3ms)[0m [1m[32mINSERT INTO `user_profiles` (`avatar`, `tagline`, `role`, `user_id`, `created_at`, `updated_at`) VALUES ('img.png', 'The Tagline', 'admin', 1, '2019-02-14 14:53:15', '2019-02-14 14:53:15')[0m
|
||||||
|
[1m[35m (3.9ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.6ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT GET_LOCK('1433072424460498080', 0)[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Migrating to CreateUserProfiles (20190214142704)
|
||||||
|
[1m[35m (15.1ms)[0m [1m[35mDROP TABLE `user_profiles`[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Destroy (2.9ms)[0m [1m[31mDELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20190214142704'[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT RELEASE_LOCK('1433072424460498080')[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT GET_LOCK('1433072424460498080', 0)[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Migrating to CreateUserProfiles (20190214142704)
|
||||||
|
[1m[35m (46.7ms)[0m [1m[35mCREATE TABLE `user_profiles` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `avatar` varchar(255), `tagline` varchar(255), `dob` date, `role` varchar(255), `user_id` bigint, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_user_profiles_on_user_id` (`user_id`), CONSTRAINT `fk_rails_87a6352e58`
|
||||||
|
FOREIGN KEY (`user_id`)
|
||||||
|
REFERENCES `users` (`id`)
|
||||||
|
)[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20190214142704')[0m
|
||||||
|
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT RELEASE_LOCK('1433072424460498080')[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
[1m[35m (0.6ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1[0m
|
||||||
|
[1m[36mUserProfile Load (0.4ms)[0m [1m[34mSELECT `user_profiles`.* FROM `user_profiles` WHERE `user_profiles`.`user_id` = 1 LIMIT 1[0m
|
||||||
|
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mUserProfile Create (0.4ms)[0m [1m[32mINSERT INTO `user_profiles` (`avatar`, `tagline`, `role`, `user_id`, `created_at`, `updated_at`) VALUES ('img.png', 'The Tagline', 'admin', 1, '2019-02-14 14:56:23', '2019-02-14 14:56:23')[0m
|
||||||
|
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[36mUserProfile Destroy (4.3ms)[0m [1m[31mDELETE FROM `user_profiles` WHERE `user_profiles`.`id` = 1[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mUserProfile Create (0.4ms)[0m [1m[32mINSERT INTO `user_profiles` (`avatar`, `tagline`, `dob`, `role`, `user_id`, `created_at`, `updated_at`) VALUES ('img.png', 'The Tagline', '1993-04-01', 'admin', 1, '2019-02-14 14:57:47', '2019-02-14 14:57:47')[0m
|
||||||
|
[1m[35m (3.8ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
Started GET "/" for 127.0.0.1 at 2019-09-26 13:17:21 +0200
|
||||||
|
|
||||||
|
Mysql2::Error::ConnectionError (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)):
|
||||||
|
|
||||||
|
mysql2 (0.5.2) lib/mysql2/client.rb:90:in `connect'
|
||||||
|
mysql2 (0.5.2) lib/mysql2/client.rb:90:in `initialize'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:811:in `new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:855:in `checkout_new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:834:in `try_to_checkout_new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:795:in `acquire_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:523:in `checkout'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:1010:in `retrieve_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_handling.rb:118:in `retrieve_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_handling.rb:90:in `connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/migration.rb:554:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
||||||
|
activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:26:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call'
|
||||||
|
rack (2.0.6) lib/rack/runtime.rb:22:in `call'
|
||||||
|
activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call'
|
||||||
|
rack (2.0.6) lib/rack/sendfile.rb:111:in `call'
|
||||||
|
rack-cors (1.0.2) lib/rack/cors.rb:97:in `call'
|
||||||
|
railties (5.2.2) lib/rails/engine.rb:524:in `call'
|
||||||
|
puma (3.12.0) lib/puma/configuration.rb:225:in `call'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:658:in `handle_request'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:472:in `process_client'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:332:in `block in run'
|
||||||
|
puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'
|
||||||
|
Started GET "/favicon.ico" for 127.0.0.1 at 2019-09-26 13:17:22 +0200
|
||||||
|
|
||||||
|
Mysql2::Error::ConnectionError (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)):
|
||||||
|
|
||||||
|
mysql2 (0.5.2) lib/mysql2/client.rb:90:in `connect'
|
||||||
|
mysql2 (0.5.2) lib/mysql2/client.rb:90:in `initialize'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `new'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `mysql2_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:811:in `new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:855:in `checkout_new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:834:in `try_to_checkout_new_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:795:in `acquire_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:523:in `checkout'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in `connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:1010:in `retrieve_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_handling.rb:118:in `retrieve_connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/connection_handling.rb:90:in `connection'
|
||||||
|
activerecord (5.2.2) lib/active_record/migration.rb:554:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
||||||
|
activesupport (5.2.2) lib/active_support/callbacks.rb:98:in `run_callbacks'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:38:in `call_app'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:26:in `block in call'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `block in tagged'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:28:in `tagged'
|
||||||
|
activesupport (5.2.2) lib/active_support/tagged_logging.rb:71:in `tagged'
|
||||||
|
railties (5.2.2) lib/rails/rack/logger.rb:26:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/request_id.rb:27:in `call'
|
||||||
|
rack (2.0.6) lib/rack/runtime.rb:22:in `call'
|
||||||
|
activesupport (5.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
|
||||||
|
actionpack (5.2.2) lib/action_dispatch/middleware/static.rb:127:in `call'
|
||||||
|
rack (2.0.6) lib/rack/sendfile.rb:111:in `call'
|
||||||
|
rack-cors (1.0.2) lib/rack/cors.rb:97:in `call'
|
||||||
|
railties (5.2.2) lib/rails/engine.rb:524:in `call'
|
||||||
|
puma (3.12.0) lib/puma/configuration.rb:225:in `call'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:658:in `handle_request'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:472:in `process_client'
|
||||||
|
puma (3.12.0) lib/puma/server.rb:332:in `block in run'
|
||||||
|
puma (3.12.0) lib/puma/thread_pool.rb:133:in `block in spawn_thread'
|
||||||
|
[1m[35m (2.0ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.5ms)[0m [1m[35mCREATE DATABASE `vereto-api-dev` DEFAULT CHARACTER SET `utf8`[0m
|
||||||
|
[1m[35m (0.7ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.5ms)[0m [1m[35mCREATE DATABASE `vereto-api-test` DEFAULT CHARACTER SET `utf8`[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (11.1ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL PRIMARY KEY)[0m
|
||||||
|
[1m[35m (10.5ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[34mSELECT GET_LOCK('1433072424460498080', 0)[0m
|
||||||
|
[1m[35m (4.5ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Migrating to CreateUsers (20180216131546)
|
||||||
|
[1m[35m (8.6ms)[0m [1m[35mCREATE TABLE `users` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `email` varchar(255), `password_digest` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20180216131546')[0m
|
||||||
|
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
Migrating to CreateArticles (20180219100642)
|
||||||
|
[1m[35m (11.9ms)[0m [1m[35mCREATE TABLE `articles` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `title` varchar(255), `post` text, `user_id` bigint, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_articles_on_user_id` (`user_id`), CONSTRAINT `fk_rails_3d31dad1cc`
|
||||||
|
FOREIGN KEY (`user_id`)
|
||||||
|
REFERENCES `users` (`id`)
|
||||||
|
) ENGINE=InnoDB[0m
|
||||||
|
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (1.0ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20180219100642')[0m
|
||||||
|
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
Migrating to CreateComments (20180222154430)
|
||||||
|
[1m[35m (14.4ms)[0m [1m[35mCREATE TABLE `comments` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `content` text, `article_id` bigint, `user_id` bigint, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_comments_on_article_id` (`article_id`), INDEX `index_comments_on_user_id` (`user_id`), CONSTRAINT `fk_rails_3bf61a60d3`
|
||||||
|
FOREIGN KEY (`article_id`)
|
||||||
|
REFERENCES `articles` (`id`)
|
||||||
|
, CONSTRAINT `fk_rails_03de2dc08c`
|
||||||
|
FOREIGN KEY (`user_id`)
|
||||||
|
REFERENCES `users` (`id`)
|
||||||
|
) ENGINE=InnoDB[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20180222154430')[0m
|
||||||
|
[1m[35m (3.8ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
Migrating to CreateUserProfiles (20190214142704)
|
||||||
|
[1m[35m (12.9ms)[0m [1m[35mCREATE TABLE `user_profiles` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `avatar` varchar(255), `tagline` varchar(255), `dob` date, `role` varchar(255), `user_id` bigint, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, INDEX `index_user_profiles_on_user_id` (`user_id`), CONSTRAINT `fk_rails_87a6352e58`
|
||||||
|
FOREIGN KEY (`user_id`)
|
||||||
|
REFERENCES `users` (`id`)
|
||||||
|
)[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO `schema_migrations` (`version`) VALUES ('20190214142704')[0m
|
||||||
|
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
||||||
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
||||||
|
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2019-09-26 11:22:33', '2019-09-26 11:22:33')[0m
|
||||||
|
[1m[35m (2.6ms)[0m [1m[35mCOMMIT[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT RELEASE_LOCK('1433072424460498080')[0m
|
||||||
|
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Started GET "/" for 127.0.0.1 at 2019-09-26 13:22:52 +0200
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.3ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Processing by Rails::WelcomeController#index as HTML
|
||||||
|
Rendering /usr/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb
|
||||||
|
Rendered /usr/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb (4.6ms)
|
||||||
|
Completed 200 OK in 16ms (Views: 13.4ms | ActiveRecord: 0.0ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started GET "/" for 127.0.0.1 at 2019-09-26 13:35:02 +0200
|
||||||
|
[1m[35m (0.4ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
↳ /usr/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/log_subscriber.rb:98
|
||||||
|
[1m[35m (0.7ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
↳ /usr/lib/ruby/gems/2.6.0/gems/activerecord-5.2.2/lib/active_record/log_subscriber.rb:98
|
||||||
|
Processing by Rails::WelcomeController#index as HTML
|
||||||
|
Rendering /usr/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb
|
||||||
|
Rendered /usr/lib/ruby/gems/2.6.0/gems/railties-5.2.2/lib/rails/templates/rails/welcome/index.html.erb (6.0ms)
|
||||||
|
Completed 200 OK in 25ms (Views: 23.2ms | ActiveRecord: 0.0ms)
|
||||||
|
|
||||||
|
|
||||||
|
Started GET "/" for 127.0.0.1 at 2019-09-26 13:40:38 +0200
|
||||||
|
[1m[35m (0.5ms)[0m [1m[35mSET @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
||||||
|
[1m[35m (0.4ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
||||||
|
Processing by Rails::WelcomeController#index as HTML
|
||||||
|
Rendering /home/crmcma/.gem/ruby/2.6.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb
|
||||||
|
Rendered /home/crmcma/.gem/ruby/2.6.0/gems/railties-6.0.0/lib/rails/templates/rails/welcome/index.html.erb (Duration: 11.2ms | Allocations: 571)
|
||||||
|
Completed 200 OK in 18ms (Views: 15.4ms | ActiveRecord: 0.0ms | Allocations: 3069)
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue